summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/multicol/table-cell-content-change.html
blob: 7ab2502faa3f019fbfef537466a7c4b877f77064 (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
27
<!DOCTYPE html>
<html>
    <head>
        <script>
            function test() {
                document.body.offsetTop; // trigger layout
                document.getElementById('elm').style.display = 'block';
            }
        </script>
    </head>
    <body onload="test()">
        <h3>Changing the contents of a table cell, increasing column height</h3>

        <p>You should see the text "first column" once in the first column, and the text "second
        column" twice in the second column.</p>
        <div style="-webkit-columns:2; columns:2; orphans:1; widows:1;">
            <div style="display:table-row;">
                first column
                <div style="height:0.1em;"></div>
            </div>
            <div style="display:table-row;">
                second column
                <div id="elm" style="display:none;">second column</div>
            </div>
        </div>
    </body>
</html>