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