4 <title>WebKit Bug
14858: col width ignored when not tied to a single cell
</title>
5 <link href=
"http://www.w3.org/TR/REC-CSS2/tables.html#q4" rel=
"help" />
6 <script src=
"../../resources/js-test.js"></script>
7 <script type=
"text/javascript" charset=
"utf-8">
9 testRunner.dumpAsText();
13 var testCell = document.getElementById('testCell');
14 var testTable = document.getElementById('testTable');
15 description(
"This tests <a href='http://webkit.org/b/14858'>Bug 14858: <col> width ignored when not tied to a single cell</a>.");
16 shouldBe(
"window.getComputedStyle(testCell).width",
"'250px'");
17 shouldBe(
"window.getComputedStyle(testTable).width",
"'500px'");
18 isSuccessfullyParsed();
21 <style type=
"text/css">
29 table
{border-spacing: 0}
35 <body onload=
"runTest()">
37 Two rows of cells should look identical.
<br>
40 <table id=
"testTable">
47 <td style=
"background-color:red">left
</td>
48 <td style=
"background-color:green" id=
"testCell" colspan=
"2">middle
</td>
49 <td style=
"background-color:blue">right
</td>
53 <table id=
"baseTable">
60 <td style=
"background-color:red">left
</td>
61 <td style=
"background-color:green">middle
</td>
62 <td style=
"background-color:green"></td>
63 <td style=
"background-color:blue">right
</td>
68 <div id=
"description"></div>
69 <div id=
"console"></div>