| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() { | 4 function repaintTest() { |
| 5 document.getElementById('fixed').style.display = 'none'; | 5 document.getElementById('fixed').style.display = 'none'; |
| 6 } | 6 } |
| 7 onload = function() { | 7 onload = function() { |
| 8 // Scroll before repaint test to test correct scroll offset of invalidation re
ct | 8 // Scroll before repaint test to test correct scroll offset of invalidation re
ct |
| 9 // for fixed-position element when it needs repaint. | 9 // for fixed-position element when it needs repaint. |
| 10 window.scrollTo(0, 400); | 10 window.scrollTo(0, 400); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 height: 100%; | 23 height: 100%; |
| 24 background-color: green; | 24 background-color: green; |
| 25 backface-visibility: hidden; | 25 backface-visibility: hidden; |
| 26 } | 26 } |
| 27 #fixed { | 27 #fixed { |
| 28 position: fixed; | 28 position: fixed; |
| 29 top: 100px; | 29 top: 100px; |
| 30 left: 100px; | 30 left: 100px; |
| 31 width: 200px; | 31 width: 200px; |
| 32 height: 200px; | 32 height: 200px; |
| 33 background-color: red; | 33 background-color: rgba(255, 0, 0, 0.99); |
| 34 } | 34 } |
| 35 </style> | 35 </style> |
| 36 Tests paint invalidation of fixed elements under a composited fixed element afte
r scrolled. | 36 Tests paint invalidation of fixed elements under a composited fixed element afte
r scrolled. |
| 37 Passes if there is only green background. | 37 Passes if there is only green background. |
| 38 <div id="fixed-container"> | 38 <div id="fixed-container"> |
| 39 <div id="fixed"></div> | 39 <div id="fixed"></div> |
| 40 </div> | 40 </div> |
| OLD | NEW |