Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-mutation-event-crash.svg
blob6d331a920faa5c8c4683efb81dd1d3fc1e4b46d7
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 // Prevent insertion of any content into the document.
6 document.documentElement.addEventListener("DOMNodeInserted", function() {
7 var insertedNode = event.target;
8 insertedNode.parentNode.removeChild(insertedNode);
9 }, true);
10 </script>
11 <defs>
12 <g id="inner">
13 <rect width="100px" height="100px" fill="green" />
14 <text x="10" y="30">PASS - didn't crash, bug 25092</text>
15 </g>
16 <g id="outer">
17 <use id="use" xlink:href="url(#inner)" />
18 </g>
19 </defs>
20 <use id="outerUse" xlink:href="url(#outer)" x="0" y="0" width="100px" height="100px" />
21 </svg>