Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / counters / destroy-counter-crash.html
blob11bd624410dd0846a4ecf2109bbaa49d09437ccd
1 <html>
2 <head>
3 <style type="text/css">
4 div { counter-reset: c }
5 iframe { counter-reset: c }
6 h1:after { content: counter(c) }
7 </style>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 window.onload = function () {
13 var testElement = document.getElementById("test");
14 document.body.removeChild(testElement);
15 var p = document.createElement("p");
16 p.appendChild(document.createTextNode("TEST PASSED"));
17 document.body.appendChild(p);
19 </script>
20 </head>
21 <body>
22 This test is to ensure that we do not crash when destroying counter nodes.
23 <div id="test">
24 <iframe/>
25 <h1/>
26 </div>
27 </body>
28 </html>