Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / webkit-keyframes-crash.html
blobe4b41bf7c5b02611147ce071ae50cdfbd5900852
1 <html>
2 <body>
3 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=62384">62384</a>: WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash</p>
4 <p>This test passed if it did not crash</p>
5 <p id="console">FAILED (test not run)</p>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function main(){
11 var e = window.document.styleSheets[0].cssRules[0];
12 e.cssRules.item(0).parentStyleSheet.removeRule();
13 e.name = 'bar';
14 document.getElementById('console').innerHTML = "PASSED";
16 window.onload = main;
17 </script>
18 <style>
19 @-webkit-keyframes foo {
20 0% {foo: bar;}
22 </style>
23 </body>
24 </html>