| <title>WebKit Bug 14858: col width ignored when not tied to a single cell</title> |
| <link href="http://www.w3.org/TR/REC-CSS2/tables.html#q4" rel="help" /> |
| <script src="../../resources/js-test-pre.js"></script> |
| <script type="text/javascript" charset="utf-8"> |
| var testCell = document.getElementById('testCell'); |
| var testTable = document.getElementById('testTable'); |
| description("This tests <a href='http://webkit.org/b/14858'>Bug 14858: <col> width ignored when not tied to a single cell</a>."); |
| shouldBe("window.getComputedStyle(testCell).width", "'250px'"); |
| shouldBe("window.getComputedStyle(testTable).width", "'500px'"); |
| table {border-spacing: 0} |
| <body onload="runTest()"> |
| Two rows of cells should look identical.<br> |
| <td style="background-color:red">left</td> |
| <td style="background-color:green" id="testCell" colspan="2">middle</td> |
| <td style="background-color:blue">right</td> |
| <td style="background-color:red">left</td> |
| <td style="background-color:green">middle</td> |
| <td style="background-color:green"></td> |
| <td style="background-color:blue">right</td> |
| <div id="description"></div> |