OLD | NEW |
| 1 <!-- Based on fast/repaint/fixed-descendant-of-transformed-scrolled.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 4 <script> |
4 function repaintTest() { | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutBlockFlow (positioned) DIV id='fixed'", |
| 7 ]; |
| 8 function paintInvalidationTest() { |
5 document.getElementById('fixed').style.backgroundColor = 'green'; | 9 document.getElementById('fixed').style.backgroundColor = 'green'; |
6 } | 10 } |
7 onload = function() { | 11 onload = function() { |
8 document.getElementById('transformed').scrollTop = 50; | 12 document.getElementById('transformed').scrollTop = 50; |
9 runRepaintTest(); | 13 runPaintInvalidationTest(); |
10 } | 14 } |
11 </script> | 15 </script> |
12 <style> | 16 <style> |
13 #transformed { | 17 #transformed { |
14 position: absolute; | 18 position: absolute; |
15 top: 50px; | 19 top: 50px; |
16 left: 100px; | 20 left: 100px; |
17 transform: translateX(0); | 21 transform: translateX(0); |
18 overflow: scroll; | 22 overflow: scroll; |
19 width: 300px; | 23 width: 300px; |
(...skipping 19 matching lines...) Expand all Loading... |
39 } | 43 } |
40 </style> | 44 </style> |
41 Tests invalidation of a fixed-position descendant of a transformed scrolled elem
ent. | 45 Tests invalidation of a fixed-position descendant of a transformed scrolled elem
ent. |
42 Passes if there is a green box at the center of the scrollable area. | 46 Passes if there is a green box at the center of the scrollable area. |
43 <div id="transformed"> | 47 <div id="transformed"> |
44 <div id="relative"> | 48 <div id="relative"> |
45 <div id="fixed"></div> | 49 <div id="fixed"></div> |
46 <div id="content"></div> | 50 <div id="content"></div> |
47 </div> | 51 </div> |
48 </div> | 52 </div> |
OLD | NEW |