5 Normal multiline comment
12 /* Single line comment */
13 /* #d { color: green; } */
16 /*/ Comment start with slash */
17 /*/ #f { color: green; } */
20 /**/ #g { color: green; } */
22 /**/#i/**/{/**/color/**/:/**/green/**/;/**/}
24 /* Unterminated comment. Should not crash.
31 if (window
.testRunner
)
32 testRunner
.dumpAsText();
34 var rules
= document
.styleSheets
[0].cssRules
;
36 for (var i
= 0; i
< rules
.length
; i
++) {
37 text
+= rules
.item(i
).cssText
;
41 document
.getElementById("result").appendChild(document
.createTextNode(text
));
43 if (document
.getElementById("result").firstChild
.data
=== document
.getElementById("expected").firstChild
.data
)
44 document
.getElementById("message").firstChild
.data
= "SUCCESS";
46 document
.getElementById("message").firstChild
.data
= "FAILURE";
53 <body onload=
"runTest()">
55 <p>Test parsing of CSS nth-child tokens.
</p>
57 <p id=
"message">TEST DID NOT COMPLETE
</p>
59 <p>Rules from the stylesheet:
</p>
61 <pre id=
"result"></pre>
63 <p>Expected result:
</p>
65 <pre id=
"expected">#a { color: green; }