3 <meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8">
8 This file intentionally contains special characters which
9 cannot be displayed by some text editors. Please
10 carefully edit the file.
13 #a127_\
7F { color:red; }
14 #b127_
\x7f { color:green; }
16 #a128_\
80 { color:red; }
17 #b128_ { color:green; }
19 #a159_\
9F { color:red; }
20 #b159_ { color:green; }
22 #a160_\A0 { color:red; }
23 #b160_ { color:green; }
25 #a384_\
180 { color:red; }
26 #b384_ƀ { color:green; }
33 if (window
.testRunner
)
34 testRunner
.dumpAsText();
36 var rules
= document
.styleSheets
[0].cssRules
;
38 for (var i
= 0; i
< rules
.length
; i
++) {
39 text
+= rules
.item(i
).cssText
;
43 document
.getElementById("result").appendChild(document
.createTextNode(text
));
45 if (document
.getElementById("result").firstChild
.data
=== document
.getElementById("expected").firstChild
.data
)
46 document
.getElementById("message").firstChild
.data
= "SUCCESS";
48 document
.getElementById("message").firstChild
.data
= "FAILURE";
55 <body onload=
"runTest()">
57 <p>Test parsing of CSS escapes.
</p>
59 <p id=
"message">TEST DID NOT COMPLETE
</p>
61 <p>Rules from the stylesheet:
</p>
63 <pre id=
"result"></pre>
65 <p>Expected result:
</p>
67 <pre id=
"expected">#a127_\
7f { color: red; }
68 #a128_ { color: red; }
69 #b128_ { color: green; }
70 #a159_ { color: red; }
71 #b159_ { color: green; }
72 #a160_ { color: red; }
73 #b160_ { color: green; }
74 #a384_ƀ { color: red; }
75 #b384_ƀ { color: green; }