summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dynamic/floating-to-positioned.html
blob: 0066d9cb86a4662add207055d2689cf54c6ad185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<body onload="test()">
    <div style="font-family: Ahem; font-size: 50px; color: red;">
        <span id="float" style="float: left; color: green;">Y</span>Z
    </div>
    <script>
        function test()
        {
            document.body.offsetTop;
            document.getElementById("float").style.position = "absolute";
        }
    </script>
</body>