Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / child-selector-implicit-tbody.html
blob0f4624841f4c5d81c6ae6368d32ddbe26952695f
1 <html>
2 <head>
3 <script>
4 function test()
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 result = "TEST FAILED";
9 if (getComputedStyle(document.getElementById("cell1")).fontWeight == "normal")
10 if (getComputedStyle(document.getElementById("cell2")).fontWeight == "bold")
11 result = "TEST PASSED: Child rule did not affect the table.";
12 document.getElementById("result").firstChild.data = result;
14 </script>
15 <style>
16 .x > .y { font-weight: bold; }
17 </style>
18 </head>
19 <body onload="test()">
20 <p>This tests the behavior of child rules when tbody elements are created by the HTML parser.
21 The implicitly-created tbody element should not be treated specially.
22 In older versions of Safari it was.</p>
23 <p id="result">TEST DID NOT RUN</p>
24 <table class="x"><tr class="y"><td id="cell1">This text should not be bold.</td></tr></table>
25 <table class="x"><tbody class="y"><tr><td id="cell2">This text should be bold.</td></tr></tbody></table>
26 </body>
27 </html>