summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/block-layout-inline-children-float-positioned.html
blob: 18b3cfb509f738c1be28f180a73899d3ee024763 (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
<head>
<title>This is a test for regression against https://bugs.webkit.org/show_bug.cgi?id=40142</title>
<style>
#target {
    width: 600px;
    height: 100px;
    text-align: center;
    border: 1px solid #ddd;
}
</style>
</head>

<body style="margin: 0;" onload="runRepaintTest()">
    <script>
        function repaintTest()
        {
            document.getElementById("target").innerHTML +=
                '<span style="float: right;">the quick brown fox jumped over the lazy dog</span>';

            document.getElementById("target").innerHTML +=
                '<span style="position: absolute;">the quick brown fox jumped over the lazy dog</span>';
        }
    </script>

    <script src="resources/text-based-repaint.js"></script>

    <p>This is a test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=40142">https://bugs.webkit.org/show_bug.cgi?id=40142</a></p>

    <div>
        <div id="target"></div>
    </div>
</body>