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