layout/reftests/svg/gradient-live-01b.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <svg xmlns="http://www.w3.org/2000/svg" 
     2      xmlns:xlink="http://www.w3.org/1999/xlink"
     3      class="reftest-wait" font-size="80">
     5 <script type="application/javascript">
     6   document.addEventListener("MozReftestInvalidate", doTest, false);
     8   function doTest() {
     9     document.getElementById('blue').setAttribute('offset', '0.5');
    10     document.documentElement.removeAttribute('class');
    11   }
    12 </script>
    14 <!-- Tests that gradients are live to stop offset changes. -->
    16 <linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    17   <stop id="green"   stop-color="#00dd00"   offset="0"/>
    18   <stop id="blue"    stop-color="#0000dd"   offset="0.9"/>
    19   <stop id="magenta" stop-color="magenta"   offset="1"/>
    20 </linearGradient>
    21 <rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
    23 <linearGradient id="grad2" xlink:href="#grad1"/>
    24 <rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
    25 <text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
    26 <text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
    28 </svg>

mercurial