1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/crashtests/361587-1.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" 1.5 + onload="setTimeout(boom, 30);" 1.6 + class="reftest-wait"> 1.7 + 1.8 +<script style="display: none" type="text/javascript"> 1.9 +<![CDATA[ 1.10 + 1.11 +function boom() 1.12 +{ 1.13 + var oldGrad = document.getElementById("grad"); 1.14 + oldGrad.parentNode.removeChild(oldGrad); 1.15 + 1.16 + var newGrad = document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"); 1.17 + newGrad.setAttribute("gradientUnits", "userSpaceOnUse"); 1.18 + newGrad.setAttribute("id", "grad"); 1.19 + 1.20 + document.documentElement.appendChild(newGrad); 1.21 + 1.22 + document.documentElement.removeAttribute("class"); 1.23 +} 1.24 + 1.25 +]]> 1.26 +</script> 1.27 + 1.28 + <radialGradient id="grad" gradientUnits="userSpaceOnUse" cx="240" cy="210" r="220" fx="240" fy="210"> 1.29 + <stop stop-color="yellow" offset="0"/> 1.30 + <stop stop-color="green" offset="1"/> 1.31 + </radialGradient> 1.32 + <rect x="20" y="150" width="440" height="80" fill="url(#grad)" stroke-width="40"/> 1.33 + 1.34 +</svg>