gecko/layout/reftests/svg/as-image/svg-image-script-2.svg

20 lines
720 B
XML
Raw Normal View History

<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="100" height="100" class="reftest-wait">
<rect width="100%" height="100%" fill="red"/>
<rect width="100%" height="100%" fill="url(script100x100.svg#p1)"/>
<rect id="r1" width="100%" height="100%" fill="transparent"/>
<script type="application/javascript">
document.addEventListener("MozReftestInvalidate", doTest, false);
// in case we're not gecko
setTimeout(doTest, 5000);
function doTest() {
// force a repaint
var r1 = document.getElementById("r1");
document.documentElement.removeChild(r1);
document.documentElement.removeAttribute('class');
}
</script>
</svg>