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

<body style="margin: 0;" onload="runRepaintTest()">
    <script src="resources/text-based-repaint.js"></script>
    <script>
        window.testIsAsync = true;

        function repaintTest()
        {
            var target = document.getElementById("target");
            target.innerHTML +=
                '<img style="height: 100px;" src="resources/apple.jpg" >';
            target.firstChild.addEventListener("load", finishRepaintTest, false);
        }
    </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 class="target" id="target"></div>
    </div>
</body>