summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/fixed-and-absolute-position-scrolled.html
blob: a7f2f6fc457c4cf58d11973f0c58e893f0c566cf (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
<html>
<head>
    <link rel="stylesheet" href="resources/default.css">
    <script src="resources/text-based-repaint.js" type="text/javascript"></script>
    <script type="text/javascript">
        if (window.testRunner)
            testRunner.dumpAsTextWithPixelResults();

        window.onload = function() {
            window.scrollTo(0, 500);
            runRepaintTest();
        }

        function repaintTest()
        {
            document.getElementById('container').style.position = 'static';
        }
    </script>
</head>
<body style="height:2000px;">
    <!-- You should see 1 green rectangle in the output and no red. -->
    <div style="top: 200px; left: 100px;" class="fixed red"></div>
    <div id="container" style="top: 5000px;" class="relative"><div id="absoluteDiv" style="top: 700px; left:100px;" class="absolute green"></div></div>
</body>
</html>