Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / styled-not-in-document-clone-inline-style-decl-parent-crash.html
blob7ee5afa2976dab35f22dbe869a4d002b4e63f73b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 Test passes if it does not crash.
8 <div id="console"></div>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 iframe1 = document.createElement('iframe');
14 document.body.appendChild(iframe1);
15 document1 = iframe1.contentDocument.implementation.createHTMLDocument("document");
16 var div1 = document1.createElement('div');
17 div1.style.color = "blue";
18 var div2 = div1.cloneNode(true);
19 delete document1;
20 gc();
21 div2.style.color = "red";
23 </script>
24 </body>
25 </html>