OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="resources/default.css"> | 3 <link rel="stylesheet" href="resources/default.css"> |
| 4 <style> |
| 5 html { |
| 6 overflow: scroll; |
| 7 } |
| 8 </style> |
| 9 <script src="../../resources/run-after-display.js"></script> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 10 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
5 <script type="text/javascript"> | 11 <script type="text/javascript"> |
6 if (window.testRunner) | 12 if (window.testRunner) { |
| 13 testRunner.waitUntilDone(); |
7 testRunner.dumpAsTextWithPixelResults(); | 14 testRunner.dumpAsTextWithPixelResults(); |
| 15 } |
| 16 |
| 17 window.onload = function() |
| 18 { |
| 19 window.scrollTo(0, 500); |
| 20 runAfterDisplay(function() { |
| 21 runRepaintTest(); |
| 22 if (window.testRunner) |
| 23 testRunner.notifyDone(); |
| 24 }); |
| 25 } |
| 26 |
8 function repaintTest() | 27 function repaintTest() |
9 { | 28 { |
10 document.getElementById('absoluteDiv').style.top = '700px'; | 29 document.getElementById('absoluteDiv').style.top = '700px'; |
11 } | 30 } |
12 </script> | 31 </script> |
13 </head> | 32 </head> |
14 <body style="height:2000px;" onload="runRepaintTest()"> | 33 <body style="height:2000px;"> |
15 <!-- You should see 1 green rectangle in the output and no red. --> | 34 <!-- You should see 1 green rectangle in the output and no red. --> |
16 <div style="top: 200px; left: 100px;" class="fixed red"></div> | 35 <div style="top: 200px; left: 100px;" class="fixed red"></div> |
17 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div></div> | 36 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> |
18 <script> | |
19 window.scrollTo(0, 500); | |
20 </script> | |
21 </body> | 37 </body> |
22 </html> | 38 </html> |
OLD | NEW |