summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/multicol/relayout-and-push-float.html
blob: 05e2263b14c9cc4cc2dc456c59333ee2a57a907b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<script src="../../resources/check-layout.js"></script>
<p>Test that re-laying out a float and at the same time pushing it downwards properly moves it to
    next column, and that we don't get a residual pagination strut before the second float.</p>
<p>There should be a blue square below.</p>
<div id="container" style="position:relative; -webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:80px; height:50px; line-height:20px;">
    <span id="newElm" style="display:none;">
        <br>
    </span>
    <br>
    <div id="firstFloat" style="float:left; width:30px; background:blue;" data-offset-y="0">
        <br>
    </div>
    <div style="float:left; width:40px; background:blue;" data-offset-y="20">
        <br>
    </div>
</div>
<script>
    document.body.offsetTop;
    document.getElementById("newElm").style.display = "inline";
    document.getElementById("firstFloat").style.paddingLeft = "10px";
    checkLayout("#container");
</script>