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/repaint.js" type="text/javascript"></script> | 4 <script src="resources/repaint.js" type="text/javascript"></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.dumpAsText(true); | 7 testRunner.dumpAsTextWithPixelResults(); |
8 function repaintTest() | 8 function repaintTest() |
9 { | 9 { |
10 document.getElementById('absoluteDiv').style.top = '700px'; | 10 document.getElementById('absoluteDiv').style.top = '700px'; |
11 } | 11 } |
12 </script> | 12 </script> |
13 </head> | 13 </head> |
14 <body style="height:2000px;" onload="runRepaintTest()"> | 14 <body style="height:2000px;" onload="runRepaintTest()"> |
15 <!-- You should see 1 green rectangle in the output and no red. --> | 15 <!-- You should see 1 green rectangle in the output and no red. --> |
16 <div style="top: 200px; left: 100px;" class="fixed red"></div> | 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> | 17 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div></div> |
18 <script> | 18 <script> |
19 window.scrollTo(0, 500); | 19 window.scrollTo(0, 500); |
20 </script> | 20 </script> |
21 </body> | 21 </body> |
22 </html> | 22 </html> |
OLD | NEW |