Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: LayoutTests/fast/dom/HTMLTableColElement/resize-table-width-using-col-width.html

Issue 151993004: Col width is not honored when dynamically updated and it would not make table narrower (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 col {
6 width: 200px;
7 }
8 td {
9 background-color: #66f;
10 height: 25px;
11 }
12 </style>
13 <script src="../../../resources/js-test.js"></script>
14 <script>
15 function runTest() {
16 description('Tests that the width of table cell changes on chang ing the colgroup width to new width which is less than its originally defined wi dth. New width should be 100');
17
18 setTimeout(function() {
19 var col = document.getElementById('thecol');
20 col.style.width="100px";
21 shouldBe("document.getElementById('colWidth').offsetWidth"," 100");
Julien - ping for review 2014/02/06 22:28:18 Do we really need a custom check instead of using
22 finishJSTest();
23 }, 0);
24 }
25 var jsTestIsAsync = true;
26 </script>
27 </head>
28 <body onload="runTest()">
29 <table>
30 <colgroup>
31 <col id="thecol" span="2">
32 </colgroup>
33 <tbody>
34 <tr>
35 <td id="colWidth"></td>
36 </tr>
37 </tbody>
38 </table>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698