OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>Error recovery in @-webkit-region body</title> | |
5 <script src="../../../resources/testharness.js"></script> | |
6 <script src="../../../resources/testharnessreport.js"></script> | |
7 <style>@-webkit-region #flow { ?{} #id {} }</style> | |
8 <style>@-webkit-region #flow { @font-face ?; #id {} }</style> | |
9 <style>@-webkit-region #flow { @import ?; #id {} }</style> | |
10 </head> | |
11 <body> | |
12 <div id="log"></div> | |
13 <script> | |
14 test(function(){ | |
15 assert_equals(document.styleSheets[0].cssRules.length, 1, "Rule vali
d and in CSSOM."); | |
16 }, "One invalid and one valid rule"); | |
17 test(function(){ | |
18 assert_equals(document.styleSheets[1].cssRules.length, 1, "Rule vali
d and in CSSOM."); | |
19 }, "One invalid @-rule of allowed type and one valid rule"); | |
20 test(function(){ | |
21 assert_equals(document.styleSheets[2].cssRules.length, 1, "Rule vali
d and in CSSOM."); | |
22 }, "One invalid @-rule of disallowed type and one valid rule"); | |
23 </script> | |
24 </body> | |
25 </html> | |
OLD | NEW |