Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / parsing-css-nonascii.html
blob707d527361079dc31e1cf225c766084c56da4f39
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
4 <style>
5 /*
6 === Warning ===
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; }
27 </style>
29 <script>
31 function runTest()
33 if (window.testRunner)
34 testRunner.dumpAsText();
36 var rules = document.styleSheets[0].cssRules;
37 var text = "";
38 for (var i = 0; i < rules.length; i++) {
39 text += rules.item(i).cssText;
40 text += "\n";
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";
47 else
48 document.getElementById("message").firstChild.data = "FAILURE";
51 </script>
53 </head>
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; }
76 </pre>
78 <script>
80 </script>
81 </body>