summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css3/flexbox/stretch-simplified-layout.html
blob: 2b95144a8564960dab12973c6deafc5294d90b54 (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
<!DOCTYPE html>
<html>
<head>
<link href="resources/flexbox.css" rel="stylesheet">
<script src="../../resources/check-layout.js"></script>
<script>
window.onload = function() {
    document.body.offsetHeight;

    document.getElementById('to-hide').style.display = "none";
    checkLayout(".flexbox");
};
</script>
</head>
<body>
<div class="flexbox" style="height: 100px;" data-expected-height="100">
    <div style="width: 100%; overflow: auto; padding-bottom: 100px; background-color: red;" data-expected-height="100">
        <div style="position: relative; height: 100px; background-color: green;" data-expected-height="100">
            <div id="to-hide" style="position: absolute;" data-expected-height="0"></div>
        </div>
    </div>
</div>
</body>
</html>