OLD | NEW |
1 <!-- Based on fast/repaint/scroll-in-transformed-layer.html --> | 1 <!-- Based on fast/repaint/scroll-in-transformed-layer.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.expectedPaintInvalidationObjects = [ | |
8 "LayoutBlockFlow (positioned) DIV id='moveMe' class='absolute clippe
d rotated'", | |
9 "LayoutBlockFlow (positioned) DIV class='absolute green'", | |
10 "LayoutBlockFlow (positioned) DIV class='absolute red'", | |
11 ]; | |
12 function paintInvalidationTest() | 7 function paintInvalidationTest() |
13 { | 8 { |
14 var moveMeElement = document.getElementById('moveMe'); | 9 var moveMeElement = document.getElementById('moveMe'); |
15 moveMeElement.scrollTop = 100; | 10 moveMeElement.scrollTop = 100; |
16 moveMeElement.scrollLeft = 50; | 11 moveMeElement.scrollLeft = 50; |
17 var classes = moveMeElement.getAttribute("class"); | 12 var classes = moveMeElement.getAttribute("class"); |
18 moveMeElement.setAttribute("class", classes + " rotated"); | 13 moveMeElement.setAttribute("class", classes + " rotated"); |
19 } | 14 } |
20 </script> | 15 </script> |
21 </head> | 16 </head> |
22 <body style="height:2000px;" onload="runPaintInvalidationTest()"> | 17 <body style="height:2000px;" onload="runPaintInvalidationTest()"> |
23 <!-- You should see 1 green rectangle rotated in the output and no red. --> | 18 <!-- You should see 1 green rectangle rotated in the output and no red. --> |
24 <div id="moveMe" style="top: 150px; left: 100px" class="absolute clipped"> | 19 <div id="moveMe" style="top: 150px; left: 100px" class="absolute clipped"> |
25 <div class="absolute green" style="top: 100px; left: 50px"></div> | 20 <div class="absolute green" style="top: 100px; left: 50px"></div> |
26 <div class="absolute red" style="top: 0px; left: 0px;"></div> | 21 <div class="absolute red" style="top: 0px; left: 0px;"></div> |
27 </div> | 22 </div> |
28 </body> | 23 </body> |
29 </html> | 24 </html> |
OLD | NEW |