summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dynamic/positioned-movement-with-positioned-children.html
blob: e2f6953b75ebb6d8936992c7f27fcf8bdd2174f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<body>
    <div style="background-color: red; width: 100px; height: 100px;">You should not see this. Resize the window.</div>
    <div id="target" style="position: absolute; left: 8; top: 108px;">
        <div style="position: absolute; left: 0; top: 0;">
            <div style="visibility: visible; width: 100px; height: 100px; background-color: green;"></div>
            <button>Button</button>
        </div>
    </div>
    <script>
        function test()
        {
            document.body.offsetTop;
            var t = document.getElementById("target");
            t.style.visibility = "hidden";
            t.style.top = "8";
        }
        test();
    </script>
</body>