summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/overhanging-float-detach-repaint.html
blob: 57779c55bfa20796e0dfd9ccb48fc051a0afcfd6 (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
37
38
39
40
41
42
43
<!DOCTYPE HTML>
<html>
<head>
    <script src="resources/text-based-repaint.js"></script>
    <script>
        if (window.testRunner)
            testRunner.dumpAsTextWithPixelResults();

    function repaintTest() {
        var floatContainer = document.getElementById("floatContainer");
        floatContainer.style.display = "none";
    }

    window.addEventListener("load", runRepaintTest);
    </script>
    <style>
    .floatWithHeight {
        float: left;
        height: 400px;
    }

    .float {
        float: left;
        background-color: red;
        height: 100px;
        width: 100px;
    }
    </style>
</head>
<body>
<div>
    <div style="opacity: 0;">
        <a href="https://bugs.webkit.org/show_bug.cgi?id=105861">Bug 105861</a>: REGRESSION (r132591): Underpainting @ uofmchildrenshospital.org<br>
        This test checks that overhanging floats are properly repainted when a renderer is detached.<br>
        This test has PASSED if there is no RED below.
    </div>
    <div class="floatWithHeight"></div>
    <div id="floatContainer">
        <div class="float"></div>
    </div>
</div>	
</body> 
</html>