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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/gradient-live-01d.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<svg xmlns="http://www.w3.org/2000/svg" 
     1.5 +     xmlns:xlink="http://www.w3.org/1999/xlink"
     1.6 +     class="reftest-wait" font-size="80">
     1.7 +     
     1.8 +<!-- Tests that gradients are live to stop addition. -->
     1.9 +
    1.10 +<script>
    1.11 +document.addEventListener("MozReftestInvalidate", addBlueStop, false);
    1.12 +
    1.13 +function addBlueStop()
    1.14 +{
    1.15 +  var stop = document.createElementNS("http://www.w3.org/2000/svg", "stop");
    1.16 +  stop.setAttribute("stop-color", "#0000dd");
    1.17 +  stop.setAttribute("offset", "0.5");
    1.18 +  document.getElementById("grad1").insertBefore(stop, document.getElementById("magenta"));
    1.19 +  document.documentElement.removeAttribute('class');
    1.20 +}
    1.21 +
    1.22 +</script>
    1.23 +
    1.24 +<linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    1.25 +  <stop id="green"   stop-color="#00dd00"   offset="0"/>
    1.26 +  <stop id="magenta" stop-color="magenta"   offset="1"/>
    1.27 +</linearGradient>
    1.28 +<rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
    1.29 +
    1.30 +<linearGradient id="grad2" xlink:href="#grad1"/>
    1.31 +<rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
    1.32 +<text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
    1.33 +<text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
    1.34 +
    1.35 +</svg>

mercurial