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