summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/table-overflow-hidden-in-overflow-hidden-scrolled.html
blob: cc2f7bdb4b95734ac0385ab6952fa8ea7289ae6f (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="resources/default.css">
    <style>
        #outer {
            position: relative;
            overflow: hidden;
            height: 200px;
        }

        section {
            padding: 192px 0 0 0;
            width: 200px;
        }

        div {
            height: 190px;
        }

        .innerWrapper {
            overflow: hidden;
        }

        .red {
            background-color: red;
        }

        .green {
            background-color: green;
        }
    </style>
    <script>
        if (window.testRunner) {
            testRunner.dumpAsTextWithPixelResults();
            testRunner.waitUntilDone();
        }

        function repaintTest()
        {
            window.location.hash = "#ucp";
            if (window.testRunner)
                testRunner.notifyDone();
        }

        function runTest()
        {
            document.getElementById("outer").scrollTop = 1000;
            setTimeout(repaintTest, 0);
        }
        window.addEventListener("load", runTest, false);
    </script>
</head>
<body>
    <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. -->
    <!-- For the test to pass you should not see any RED, only green -->
    <div id="outer">
        <section>
            <div class="innerWrapper">
                <div class="red"></div>
                <table id="ucp" class="green"><td style="height: 190px"></td></table>
            </div>
        </section>
    </div>
</body>
</html>