layout/svg/crashtests/402408-1.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/svg/crashtests/402408-1.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 +     onload="boom();"
     1.7 +    class="reftest-wait">
     1.8 +     
     1.9 +<script>
    1.10 +
    1.11 +function boom()
    1.12 +{
    1.13 +  var grad1 = document.getElementById("grad1");
    1.14 +  var grad2 = document.getElementById("grad2");
    1.15 +
    1.16 +  grad1.appendChild(grad2);
    1.17 +
    1.18 +  setTimeout(function() { 
    1.19 +    grad1.removeChild(grad2);
    1.20 +    document.documentElement.removeAttribute("class");
    1.21 +  }, 30);  
    1.22 +}
    1.23 +
    1.24 +</script>
    1.25 +
    1.26 +<linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
    1.27 +  <stop id="green"   stop-color="#00dd00"   offset="0"/>
    1.28 +  <stop id="blue"    stop-color="#0000dd"   offset="1"/>
    1.29 +</linearGradient>
    1.30 +
    1.31 +<linearGradient id="grad2" xlink:href="#grad1"/>
    1.32 +
    1.33 +<rect x="20" y="20" width="440" height="80" fill="url(#grad2)" />
    1.34 +
    1.35 +</svg>

mercurial