17 <script src=
"../../resources/check-layout.js"></script>
20 This test verifies table cell width is correctly updated after a table-layout change.
23 <tr><td class=
"wide-cell" data-expected-width=
"100"></td><td class=
"wide-cell" data-expected-width=
"100"></td></tr>
26 <div id=
"test-output"></div>
29 document
.body
.offsetTop
;
31 var table
= document
.getElementById("table");
32 var row
= table
.insertRow();
33 row
.insertCell().setAttribute("data-expected-width", "100")
34 row
.insertCell().setAttribute("data-expected-width", "100")
36 document
.body
.offsetTop
;
38 var container
= document
.getElementById("container");
39 container
.style
.setProperty("width", "500px");
41 table
.style
.setProperty("table-layout", "auto");
42 table
.style
.setProperty("width", "auto");
44 window
.checkLayout("#table tr td", document
.getElementById("test-output"));