summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/intermediate-layout-position.html
blob: 22ea2452d69382ba7da0f45f02a12fb49a793cb7 (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
29
30
31
32
33
34
35
36
<html>
<head>
    <title>Test for http://bugs.webkit.org/show_bug.cgi?id=10522</title>
    <style type="text/css">
        .float { float: right; height: 40px; width: 40px; }
        .test { height: 100px; 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';
            document.getElementById('cell').style.height='20px';
        }
    </script>
</head>
<body onload="runRepaintTest()">
    <div class="test">
        <div class="float"></div>
        <div style="clear: right; background-color: purple; width: 40px; padding: 3px;">
            <div style="height: 40px; width: 0;" id="target">
            </div>
        </div>
    </div>
    
    <div class="test">
        <div class="float"></div>
        <table style="clear: both; background-color: purple;">
            <tr>
                <td id="cell" style="height: 40px; width: 40px;">
                </td>
            </tr>
        </table>
    </div>
</body>
</html>