blob: 0f4624841f4c5d81c6ae6368d32ddbe26952695f [file] [log] [blame]
<html>
<head>
<script>
function test()
{
if (window.testRunner)
testRunner.dumpAsText();
result = "TEST FAILED";
if (getComputedStyle(document.getElementById("cell1")).fontWeight == "normal")
if (getComputedStyle(document.getElementById("cell2")).fontWeight == "bold")
result = "TEST PASSED: Child rule did not affect the table.";
document.getElementById("result").firstChild.data = result;
}
</script>
<style>
.x > .y { font-weight: bold; }
</style>
</head>
<body onload="test()">
<p>This tests the behavior of child rules when tbody elements are created by the HTML parser.
The implicitly-created tbody element should not be treated specially.
In older versions of Safari it was.</p>
<p id="result">TEST DID NOT RUN</p>
<table class="x"><tr class="y"><td id="cell1">This text should not be bold.</td></tr></table>
<table class="x"><tbody class="y"><tr><td id="cell2">This text should be bold.</td></tr></tbody></table>
</body>
</html>