OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Pseudo classes with escaped start parenthesis</title> | 4 <title>Pseudo classes with escaped start parenthesis</title> |
5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
7 <style>:-webkit-any\( {}</style> | 7 <style>:-webkit-any\( {}</style> |
8 <style>:nth-child\( {}</style> | 8 <style>:nth-child\( {}</style> |
9 <style>:nth-of-type\( {}</style> | 9 <style>:nth-of-type\( {}</style> |
10 <style>:nth-last-child\( {}</style> | 10 <style>:nth-last-child\( {}</style> |
11 <style>:nth-last-of-type\( {}</style> | 11 <style>:nth-last-of-type\( {}</style> |
12 <style>:lang\( {}</style> | 12 <style>:lang\( {}</style> |
13 <style>:not\( {}</style> | 13 <style>:not\( {}</style> |
14 <style>:cue\( {}</style> | 14 <style>:cue\( {}</style> |
15 <style>:-webkit-distributed\( {}</style> | |
16 <style>:part\( {}</style> | 15 <style>:part\( {}</style> |
17 <style>:host\( {}</style> | 16 <style>:host\( {}</style> |
18 </head> | 17 </head> |
19 <body> | 18 <body> |
20 <p id="log"></p> | 19 <p id="log"></p> |
21 <script> | 20 <script> |
22 var sheets = document.styleSheets; | 21 var sheets = document.styleSheets; |
23 | 22 |
24 test(function(){ | 23 test(function(){ |
25 assert_equals(sheets.length, 11, "StyleSheets.length"); | 24 assert_equals(sheets.length, 10, "StyleSheets.length"); |
26 }, "All stylesheets present") | 25 }, "All stylesheets present") |
27 | 26 |
28 for (var i=0; i<sheets.length; i++) { | 27 for (var i=0; i<sheets.length; i++) { |
29 test(function(){ | 28 test(function(){ |
30 assert_equals(sheets[i].cssRules.length, 0, "cssRules.length"); | 29 assert_equals(sheets[i].cssRules.length, 0, "cssRules.length"); |
31 }, "Drop \"" + sheets[i].ownerNode.firstChild.data + "\""); | 30 }, "Drop \"" + sheets[i].ownerNode.firstChild.data + "\""); |
32 } | 31 } |
33 </script> | 32 </script> |
34 </body> | 33 </body> |
35 </html> | 34 </html> |
OLD | NEW |