Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / style-element-invalidation-crash.html
blobb779a43690ce138d1de48f88066b2532746de61d
1 <style>body{}</style>
2 <body>
3 This test passes if it does not crash.
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 var style = document.styleSheets[0].ownerNode;
8 style.type = 'p';
9 style.innerHTML = 't';
10 console.assert(document.styleSheets.length == 0);
12 if (document.styleSheets.length) {
13 document.body.offsetTop;
14 document.styleSheets[0].deleteRule(0);
15 document.designMode = 'on';
17 </script>