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