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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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 <!-- Tests that gradients are live to stop addition. -->
     7 <script>
     8 document.addEventListener("MozReftestInvalidate", addBlueStop, false);
    10 function addBlueStop()
    11 {
    12   var stop = document.createElementNS("http://www.w3.org/2000/svg", "stop");
    13   stop.setAttribute("stop-color", "#0000dd");
    14   stop.setAttribute("offset", "0.5");
    15   document.getElementById("grad1").insertBefore(stop, document.getElementById("magenta"));
    16   document.documentElement.removeAttribute('class');
    17 }
    19 </script>
    21 <linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    22   <stop id="green"   stop-color="#00dd00"   offset="0"/>
    23   <stop id="magenta" stop-color="magenta"   offset="1"/>
    24 </linearGradient>
    25 <rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
    27 <linearGradient id="grad2" xlink:href="#grad1"/>
    28 <rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
    29 <text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
    30 <text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
    32 </svg>

mercurial