blob: 6d331a920faa5c8c4683efb81dd1d3fc1e4b46d7 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<script>
if (window.testRunner)
testRunner.dumpAsText();
// Prevent insertion of any content into the document.
document.documentElement.addEventListener("DOMNodeInserted", function() {
var insertedNode = event.target;
insertedNode.parentNode.removeChild(insertedNode);
}, true);
</script>
<defs>
<g id="inner">
<rect width="100px" height="100px" fill="green" />
<text x="10" y="30">PASS - didn't crash, bug 25092</text>
</g>
<g id="outer">
<use id="use" xlink:href="url(#inner)" />
</g>
</defs>
<use id="outerUse" xlink:href="url(#outer)" x="0" y="0" width="100px" height="100px" />
</svg>