OLD | NEW |
1 <!-- Based on fast/repaint/fixed-descendant-of-transformed-scrolled.html --> | 1 <!-- Based on fast/repaint/fixed-descendant-of-transformed-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.backgroundColor = 'green'; | 6 document.getElementById('fixed').style.backgroundColor = 'green'; |
10 } | 7 } |
11 onload = function() { | 8 onload = function() { |
12 document.getElementById('transformed').scrollTop = 50; | 9 document.getElementById('transformed').scrollTop = 50; |
13 runPaintInvalidationTest(); | 10 runPaintInvalidationTest(); |
14 } | 11 } |
15 </script> | 12 </script> |
16 <style> | 13 <style> |
17 #transformed { | 14 #transformed { |
(...skipping 25 matching lines...) Expand all Loading... |
43 } | 40 } |
44 </style> | 41 </style> |
45 Tests invalidation of a fixed-position descendant of a transformed scrolled elem
ent. | 42 Tests invalidation of a fixed-position descendant of a transformed scrolled elem
ent. |
46 Passes if there is a green box at the center of the scrollable area. | 43 Passes if there is a green box at the center of the scrollable area. |
47 <div id="transformed"> | 44 <div id="transformed"> |
48 <div id="relative"> | 45 <div id="relative"> |
49 <div id="fixed"></div> | 46 <div id="fixed"></div> |
50 <div id="content"></div> | 47 <div id="content"></div> |
51 </div> | 48 </div> |
52 </div> | 49 </div> |
OLD | NEW |