Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / css-keyframe-style-crash.html
blobce9b8099926a79af550c995bce7b36a9667c278b
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 if (!window.gc)
11 window.gc = function()
13 if (window.GCController)
14 return GCController.collect();
15 for (var i = 0; i < 10000; i++)
16 var s = new String("abc");
20 function load()
22 style = document.createElement('style');
23 style.textContent = '@-webkit-keyframes anim { from { color: green } }';
24 document.head.appendChild(style);
25 rule = document.styleSheets[0].cssRules[0].findRule('from');
26 document.head.removeChild(style);
27 setTimeout(crash, 0);
30 function crash()
32 gc();
33 obj = rule.style.parentRule;
34 if (window.testRunner)
35 testRunner.notifyDone()
37 </script>
38 </head>
39 <body onload="load()">PASS</body>
40 </html>