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
;
16 .x
> .y { font-weight: bold; }
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>