Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / parsing-css-escapes.html
blobf8d06c713b3cd422214a6c49ce3627189242e7a0
1 <head>
2 <style>
3 /*
4 === Warning ===
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
8 */
10 /* Base form of the rule: */
11 #a { background-color: green; }
12 #b { b\61 C\06bG\0052o\00075n\000064-col\6Fr: green; }
13 #c { b\61 c\6b
14 g\72\fo\75 n\64
15 -color: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. */}
18 </style>
20 <script>
22 function runTest()
24 if (window.testRunner)
25 testRunner.dumpAsText();
27 var rules = document.styleSheets[0].cssRules;
28 var text = "";
29 for (var i = 0; i < rules.length; i++) {
30 text += rules.item(i).cssText;
31 text += "\n";
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";
38 else
39 document.getElementById("message").firstChild.data = "FAILURE";
42 </script>
44 </head>
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; }
61 #d { }
62 #e { }
63 </pre>
65 <script>
67 </script>
68 </body>