19 <script src=
"../../resources/check-layout.js"></script>
22 This test verifies table cell width is correctly updated after a table-layout change.
25 <thead><tr><td data-expected-width=
"100"></td><td data-expected-width=
"100"></td><td class=
"wide" data-expected-width=
"100"></td></tr></thead>
26 <tbody><tr><td data-expected-width=
"100"></td><td class=
"wide" data-expected-width=
"100"></td><td data-expected-width=
"100"></td></tr></tbody>
27 <tfoot><tr><td class=
"wide" data-expected-width=
"100"></td><td data-expected-width=
"100"></td><td data-expected-width=
"100"></td></tr></tfoot>
30 <div id=
"test-output"></div>
33 document
.body
.offsetTop
;
35 var container
= document
.getElementById('container');
36 container
.style
.setProperty('width', '500px');
38 var table
= document
.getElementById('table');
39 table
.style
.setProperty('table-layout', 'auto');
40 table
.style
.setProperty('width', 'auto');
42 window
.checkLayout("td", document
.getElementById("test-output"));