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