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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/gradient-live-01a.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     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 +<script type="application/javascript">
     1.9 +  document.addEventListener("MozReftestInvalidate", doTest, false);
    1.10 +  
    1.11 +  function doTest() {
    1.12 +    document.getElementById('grad1').removeChild(document.getElementById('red'));
    1.13 +    document.documentElement.removeAttribute('class');
    1.14 +  }
    1.15 +  
    1.16 +</script>
    1.17 +
    1.18 +<!-- Tests that gradients are live to stop removal. -->
    1.19 +
    1.20 +<linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    1.21 +  <stop id="green"   stop-color="#00dd00"   offset="0"/>
    1.22 +  <stop id="blue"    stop-color="#0000dd"   offset="0.5"/>
    1.23 +  <stop id="red"     stop-color="red"       offset="0.6"/>
    1.24 +  <stop id="magenta" stop-color="magenta"   offset="1"/>
    1.25 +</linearGradient>
    1.26 +<rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
    1.27 +
    1.28 +<linearGradient id="grad2" xlink:href="#grad1"/>
    1.29 +<rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
    1.30 +<text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
    1.31 +<text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
    1.32 +
    1.33 +</svg>

mercurial