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