summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/resize-table-width-using-col-width.html
blob: ef07880d76194a212448703e84bd66ff1945f387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<style>
    col { width: 200px; }
    td { background-color: #66f; height: 25px; }
</style>
<script type="text/javascript">
    onload = function () {
        var col = document.getElementById('thecol');
        col.offsetTop;
        col.style.width="100px";
        checkLayout("td", document.getElementById("test-output"));
    }
</script>
<script src="../../resources/check-layout.js"></script>
Tests that the width of table cell changes on changing the colgroup width to new width.
<table>
    <colgroup>
        <col id="thecol">
    </colgroup>
    <tbody>
        <tr>
            <td data-expected-width="100"></td>
        </tr>
    </tbody>
</table>
<div id="test-output"></div>