Repaint cleanup:
[WebKit-https.git] / LayoutTests / fast / repaint / absolute-position-changed.html
1 <html>
2 <head>
3     <link rel="stylesheet" href="resources/default.css">
4     <script type="text/javascript">
5         if (window.testRunner)
6           testRunner.waitUntilDone();
7
8         function repaintTest() {
9           document.getElementById('absoluteDiv').style.top = '700px';
10           if (window.testRunner)
11             testRunner.notifyDone();
12         }
13     </script>
14 </head>
15 <body style="height:2000px;" onload="setTimeout(repaintTest, 0);">
16     <!-- You should see 1 green rectangle in the output and no red. -->
17     <div style="top: 200px; left: 100px;" class="fixed red"></div>
18     <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"></div>
19     <script>
20         window.scrollTo(0, 500);
21     </script>
22 </body>
23 </html>