OLD | NEW |
| 1 <!-- Based on fast/repaint/scroll-fixed-layer-with-reflection.html --> |
1 <html> | 2 <html> |
2 <head> | 3 <head> |
3 <link rel="stylesheet" href="resources/default.css"></style> | 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"></
style> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
5 <script type="text/javascript"> | 6 <script type="text/javascript"> |
6 if (window.testRunner) | |
7 testRunner.dumpAsTextWithPixelResults(); | |
8 | |
9 window.onload = function() { | 7 window.onload = function() { |
10 window.scrollTo(100, 180); | 8 window.scrollTo(100, 180); |
11 runRepaintTest(); | 9 runPaintInvalidationTest(); |
12 }; | 10 }; |
13 | 11 |
14 function repaintTest() | 12 window.expectedPaintInvalidationObjects = [ |
| 13 "LayoutBlockFlow (positioned) DIV id='moveMe' class='fixed clipped'"
, |
| 14 "LayoutBlockFlow (positioned) DIV class='absolute green reflected'", |
| 15 "LayoutBlockFlow (positioned) DIV class='absolute red'", |
| 16 ]; |
| 17 function paintInvalidationTest() |
15 { | 18 { |
16 var moveMeElement = document.getElementById('moveMe'); | 19 var moveMeElement = document.getElementById('moveMe'); |
17 moveMeElement.scrollTop = 250; | 20 moveMeElement.scrollTop = 250; |
18 moveMeElement.scrollLeft = 150; | 21 moveMeElement.scrollLeft = 150; |
19 } | 22 } |
20 </script> | 23 </script> |
21 </head> | 24 </head> |
22 <body style="height:2000px;"> | 25 <body style="height:2000px;"> |
23 <!-- You should see 1 green rectangle rotated in the output and no red. --> | 26 <!-- You should see 1 green rectangle rotated in the output and no red. --> |
24 <div id="moveMe" style="top: 100px; left: 250px;" class="fixed clipped"> | 27 <div id="moveMe" style="top: 100px; left: 250px;" class="fixed clipped"> |
25 <div class="absolute green reflected" style="height: 50px; top: 150px; l
eft: 150px;"></div> | 28 <div class="absolute green reflected" style="height: 50px; top: 150px; l
eft: 150px;"></div> |
26 <div class="absolute red" style="top: 0px; left: 0px; height: 250px; wid
th: 150px;"></div> | 29 <div class="absolute red" style="top: 0px; left: 0px; height: 250px; wid
th: 150px;"></div> |
27 </div> | 30 </div> |
28 <!-- Make sure we are scrolled --> | 31 <!-- Make sure we are scrolled --> |
29 <div style="top: 0px; left: 0px;" class="absolute red"></div> | 32 <div style="top: 0px; left: 0px;" class="absolute red"></div> |
30 </body> | 33 </body> |
31 </html> | 34 </html> |
OLD | NEW |