| OLD | NEW |
| 1 <!-- Based on fast/repaint/fixed-child-of-transformed-scrolled.html --> | 1 <!-- Based on fast/repaint/fixed-child-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 18 matching lines...) Expand all Loading... |
| 36 width: 1000px; | 33 width: 1000px; |
| 37 height: 1000px; | 34 height: 1000px; |
| 38 } | 35 } |
| 39 </style> | 36 </style> |
| 40 Tests invalidation of a fixed-position child of a transformed scrolled element. | 37 Tests invalidation of a fixed-position child of a transformed scrolled element. |
| 41 Passes if there is a green box at the center of the scrollable area. | 38 Passes if there is a green box at the center of the scrollable area. |
| 42 <div id="transformed"> | 39 <div id="transformed"> |
| 43 <div id="fixed"></div> | 40 <div id="fixed"></div> |
| 44 <div id="content"></div> | 41 <div id="content"></div> |
| 45 </div> | 42 </div> |
| OLD | NEW |