Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / switch-table-layout-dynamic-cells.html
blob04c3af3884c1767864a85392a563e64c1dfbb471
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 #container {
6 width: 1px;
8 #table {
9 width: 200px;
10 table-layout: fixed;
12 .wide-cell {
13 width: 100px;
14 padding: 0;
16 </style>
17 <script src="../../resources/check-layout.js"></script>
18 </head>
19 <body>
20 This test verifies table cell width is correctly updated after a table-layout change.
21 <div id="container">
22 <table id="table">
23 <tr><td class="wide-cell" data-expected-width="100"></td><td class="wide-cell" data-expected-width="100"></td></tr>
24 </table>
25 </div>
26 <div id="test-output"></div>
27 </body>
28 <script>
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"));
45 </script>
46 </html>