OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="resources/default.css"></style> | 3 <link rel="stylesheet" href="resources/default.css"></style> |
| 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 function scrollAndRepaint() |
| 13 { |
| 14 window.scrollTo(100, 180); |
| 15 runAfterDisplay(function() { |
| 16 runRepaintTest(); |
| 17 if (window.testRunner) |
| 18 testRunner.notifyDone(); |
| 19 }); |
| 20 } |
8 | 21 |
9 function repaintTest() | 22 function repaintTest() |
10 { | 23 { |
11 document.getElementById("hideMe").style.zIndex = "-5"; | 24 document.getElementById("hideMe").style.zIndex = "-5"; |
12 } | 25 } |
13 </script> | 26 </script> |
14 </head> | 27 </head> |
15 <body style="height:2000px;" onload="runRepaintTest()"> | 28 <body style="height:2000px;" onload="scrollAndRepaint()"> |
16 <!-- You should see 1 green rectangle rotated in the output and no red. --> | 29 <!-- You should see 1 green rectangle rotated in the output and no red. --> |
17 <div style="height: 50px; top: 100px; left: 250px;" class="reflected fixed"> | 30 <div style="height: 50px; top: 100px; left: 250px;" class="reflected fixed"> |
18 <div class="absolute green reflected" style="height: 50px;"></div> | 31 <div class="absolute green reflected" style="height: 50px;"></div> |
19 <div id="hideMe" class="absolute red" style="top: 0px; left: 0px;"></div
> | 32 <div id="hideMe" class="absolute red" style="top: 0px; left: 0px;"></div
> |
20 </div> | 33 </div> |
21 <!-- Make sure we are scrolled --> | 34 <!-- Make sure we are scrolled --> |
22 <div style="top: 0px; left: 0px;" class="absolute red"></div> | 35 <div style="top: 0px; left: 0px;" class="absolute red"></div> |
23 <script> | |
24 window.scrollTo(100, 180); | |
25 </script> | |
26 </body> | 36 </body> |
27 </html> | 37 </html> |
OLD | NEW |