| <html> |
| <head> |
| <script> |
| function test() |
| { |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| result = "TEST FAILED"; |
| if (getComputedStyle(document.getElementById("cell1")).fontWeight == "400") |
| if (getComputedStyle(document.getElementById("cell2")).fontWeight == "700") |
| 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> |