Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / parsing-selector-error-recovery.html
blobd2dd912846524b5c2ff1137e414ae2cc45f78946
1 <html>
2 <body>
3 <div>
4 Tests error recovery in CSS selectors.
5 </div>
7 <style>.hidden-by-default div {display: none}</style>
8 <div class="hidden-by-default">
10 <style>[{}#test1{display: block}]{}</style>
11 <div id="test1"></div>
13 <style>[#{}#test2{display: block}]{}</style>
14 <div id="test2"></div>
16 <style>[x{}#test3{display: block}]{}</style>
17 <div id="test3"></div>
19 <style>:-webkit-any({}#test4{display: block}){}</style>
20 <div id="test4"></div>
22 <style>:func({}#test5{display: block}){}</style>
23 <div id="test5"></div>
25 <style>:cue({}#test6{display: block}){}</style>
26 <div id="test6"></div>
28 <style>::cue({}#test7{display: block}){}</style>
29 <div id="test7"></div>
31 <style>x,:cue({}#test8{display: block}){}</style>
32 <div id="test8"></div>
34 <style>x,cue({}#test9{display: block}){}</style>
35 <div id="test9"></div>
37 <style>x,:cue({}#test10{display: block}){}</style>
38 <div id="test10"></div>
40 <style>x,(url('example.org'){}#test11{display: block}){}</style>
41 <div id="test11"></div>
43 </div>
45 <script type="text/javascript">
46 if (window.testRunner)
47 testRunner.dumpAsText();
49 var tests = document.querySelectorAll("[id^=test]");
50 for (var i = 0; i < tests.length; i++)
51 tests[i].textContent = "Test " + tests[i].id + " failed.";
52 </script>
53 </body>