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