OLD | NEW |
1 <!-- Based on fast/repaint/absolute-position-changed.html --> | 1 <!-- Based on fast/repaint/absolute-position-changed.html --> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> | 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> |
5 <style> | 5 <style> |
6 ::-webkit-scrollbar { | 6 ::-webkit-scrollbar { |
7 width: 0px; | 7 width: 0px; |
8 height: 0px; | 8 height: 0px; |
9 } | 9 } |
10 html { | 10 html { |
11 overflow: scroll; | 11 overflow: scroll; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | 14 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
15 <script type="text/javascript"> | 15 <script type="text/javascript"> |
16 window.onload = function() { | 16 window.onload = function() { |
17 window.scrollTo(0, 500); | 17 window.scrollTo(0, 500); |
18 runPaintInvalidationTest(); | 18 runPaintInvalidationTest(); |
19 }; | 19 }; |
20 | 20 |
21 window.expectedPaintInvalidationObjects = [ | |
22 "LayoutBlockFlow (positioned) DIV id='absoluteDiv' class='absolute g
reen'", | |
23 ]; | |
24 function paintInvalidationTest() | 21 function paintInvalidationTest() |
25 { | 22 { |
26 document.getElementById('absoluteDiv').style.top = '700px'; | 23 document.getElementById('absoluteDiv').style.top = '700px'; |
27 } | 24 } |
28 </script> | 25 </script> |
29 </head> | 26 </head> |
30 <body style="height:2000px;"> | 27 <body style="height:2000px;"> |
31 <!-- You should see 1 green rectangle in the output and no red. --> | 28 <!-- You should see 1 green rectangle in the output and no red. --> |
32 <div style="top: 200px; left: 100px;" class="fixed red"></div> | 29 <div style="top: 200px; left: 100px;" class="fixed red"></div> |
33 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> | 30 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> |
34 </body> | 31 </body> |
35 </html> | 32 </html> |
OLD | NEW |