summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/intermediate-layout-position-clip.html
blob: dd47df0e8ec84b6a1d4f227489ea74a72579284f (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
25
26
27
28
<html>
<head>
    <title></title>
    <style type="text/css">
        .float { float: right; height: 40px; width: 40px; }
        .test { height: 200px; background-color: aliceblue }
    </style>
    <script src="resources/text-based-repaint.js" type="text/javascript"></script>
    <script type="text/javascript">
        function repaintTest()
        {
            document.getElementById('target').style.height='20px';
        }
    </script>
</head>
<body onload="runRepaintTest()">
    <div id="scroller" style="overflow: hidden; height: 40px">
        <div class="test">
            <div class="float"></div>
            <div style="clear: right; padding-bottom: 10px;">
                <div style="height: 40px; width: 40px; background-color: red;" id="target">
                </div>
            </div>
        </div>
    </div>
    <script>scroller.scrollTop = 60;</script>
</body>
</html>