layout/reftests/svg/mask-img-ref.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE html>
     2 <html>
     3   <body style="margin:0">
     4     <img src='data:image/svg+xml,
     5 <!-- vim: set expandtab ts=2 sw=2 tw=80: -->
     6 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"
     7   xmlns:xlink="http://www.w3.org/1999/xlink"
     8   viewBox="0 0 700 130">
     9   <defs>
    10     <style type="text/css">
    11     .fillSpan  {
    12       fill: lightgrey;
    13       stroke: black;
    14     }
    15     </style>
    16     <!-- Fade out effect -->
    17     <mask id="fadeout" maskContentUnits="objectBoundingBox">
    18       <rect x="-0.05" y="-0.05" width="1.1" height="1.1"
    19         fill="url(%23fadeoutGrad)"/>
    20     </mask>
    21     <linearGradient id="fadeoutGrad">
    22       <stop offset="0" stop-color="white" stop-opacity="1"/>
    23       <stop offset="0.35" stop-color="white" stop-opacity="1"/>
    24       <stop offset="0.9" stop-color="white" stop-opacity="0"/>
    25     </linearGradient>
    26   </defs>
    27   <rect y="50" width="150" height="80" class="fillSpan" mask="url(%23fadeout)"/>
    28 </svg>
    29     ' border=0 width="700">
    30   </body>
    31 </html>

mercurial