OLD | NEW |
1 <!-- Based on fast/repaint/fixed-under-composited-absolute-scrolled.html --> | 1 <!-- Based on fast/repaint/fixed-under-composited-absolute-scrolled.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 "LayoutBlockFlow (positioned) DIV id='fixed'", | |
7 ]; | |
8 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
9 document.getElementById('fixed').style.height = '200px'; | 6 document.getElementById('fixed').style.height = '200px'; |
10 } | 7 } |
11 onload = function() { | 8 onload = function() { |
12 // Scroll before repaint test to test correct scroll offset of invalidation re
ct | 9 // Scroll before repaint test to test correct scroll offset of invalidation re
ct |
13 // for fixed-position element when it needs repaint. | 10 // for fixed-position element when it needs repaint. |
14 window.scrollTo(0, 400); | 11 window.scrollTo(0, 400); |
15 runPaintInvalidationTest(); | 12 runPaintInvalidationTest(); |
16 }; | 13 }; |
17 </script> | 14 </script> |
(...skipping 24 matching lines...) Expand all Loading... |
42 background-color: green; | 39 background-color: green; |
43 } | 40 } |
44 </style> | 41 </style> |
45 Tests paint invalidation of fixed element under a composited absolute element on
resize after scrolled. | 42 Tests paint invalidation of fixed element under a composited absolute element on
resize after scrolled. |
46 Passes if there is a 100x200 green rectangle and no red. | 43 Passes if there is a 100x200 green rectangle and no red. |
47 <div id="indicator"></div> | 44 <div id="indicator"></div> |
48 <div id="absolute"> | 45 <div id="absolute"> |
49 <div id="fixed"> | 46 <div id="fixed"> |
50 </div> | 47 </div> |
51 </div> | 48 </div> |
OLD | NEW |