6 This file intentionally contains special newline characters: \n \f \r \r\n
7 Keep them when you move the file between different OSes / file-systems
10 /* Base form of the rule: */
11 #a { background-color: green; }
12 #b { b\
61 C\
06bG\
0052o\
00075n\
000064-col\
6Fr: green; }
16 #d { background-colo\
0000072: green; /* Invalid: too many hex characters. */}
17 #e { b\
61\vckground-color: green; /* Invalid: \
0b is not a newline character. */}
24 if (window
.testRunner
)
25 testRunner
.dumpAsText();
27 var rules
= document
.styleSheets
[0].cssRules
;
29 for (var i
= 0; i
< rules
.length
; i
++) {
30 text
+= rules
.item(i
).cssText
;
34 document
.getElementById("result").appendChild(document
.createTextNode(text
));
36 if (document
.getElementById("result").firstChild
.data
=== document
.getElementById("expected").firstChild
.data
)
37 document
.getElementById("message").firstChild
.data
= "SUCCESS";
39 document
.getElementById("message").firstChild
.data
= "FAILURE";
46 <body onload=
"runTest()">
48 <p>Test parsing of CSS escapes.
</p>
50 <p id=
"message">TEST DID NOT COMPLETE
</p>
52 <p>Rules from the stylesheet:
</p>
54 <pre id=
"result"></pre>
56 <p>Expected result:
</p>
58 <pre id=
"expected">#a { background-color: green; }
59 #b { background-color: green; }
60 #c { background-color: green; }