Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / clip-path-document-change-assert.html
blobe52b806e29a910ada8fac6eacb463f90451f36a3
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 </head>
4 <body id="bodyRoot">
5 <svg xmlns="http://www.w3.org/2000/svg">
6 <defs>
7 <clipPath id="clipClip">
8 <rect>
9 </rect>
10 </clipPath>
11 <clipPath clip-path="url(#clipClip)">
12 <circle>
13 </circle>
14 </clipPath>
15 </defs>
16 <rect>
17 </rect>
18 </svg>
19 </body>
20 <script>
21 if (window.testRunner) {
22 testRunner.waitUntilDone();
23 testRunner.dumpAsText();
26 document.addEventListener("DOMContentLoaded", initCrash, false);
28 function initCrash() {
29 var bodyRoot = document.getElementById("bodyRoot");
30 try { document.implementation.createDocument("", "", null).adoptNode(bodyRoot); } catch(e) {}
31 try { bodyRoot.textContent = "" } catch(e) {}
32 document.documentElement.innerHTML = "PASS";
34 if (window.testRunner)
35 testRunner.notifyDone();
37 </script>
38 </html>