summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html
blob: e9876d529c00cb98f4ed54d8691445f44679ea57 (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
<!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 src="resources/text-based-repaint.js"></script>
    <script>
        function repaintTest()
        {
            window.location.hash = "#ucp";
        }

        function runTest()
        {
            document.getElementById("outer").scrollTop = 1000;
            runRepaintTest();
        }
    </script>
</head>
<body onload="runTest()">
    <!-- 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>
                <div id="ucp" class="green"></div>
            </div>
        </section>
    </div>
</body>
</html>