summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dynamic/subtree-boundary-percent-height.html
blob: 01dc5f0c074a2f03f8d94c7ed375e418eee481f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
<head>
    <script>
        function test()
        {
            document.body.offsetTop;
            document.getElementById("inner").style.height = "100px";
        }
    </script>
</head>
<body onload="test()">
    <div style="height: 200px;">
        <div style="height: auto;">
            <div style="width: 100px; height: 1%; overflow: hidden; background-color: white;">
                <div id="inner" style="height: 0;"></div>
            </div>
        </div>
        <div style="width: 100px; height: 100px; background-color: green;"></div>
    </div>
</body>
</html>