| OLD | NEW |
| 1 <!-- Based on fast/repaint/full-viewport-repaint-for-background-attachment-fixed
.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <style> | 3 <style> |
| 3 body { | 4 body { |
| 4 background-image: linear-gradient(red, blue); | 5 background-image: linear-gradient(red, blue); |
| 5 background-attachment: fixed; | 6 background-attachment: fixed; |
| 6 margin: 0; | 7 margin: 0; |
| 7 } | 8 } |
| 8 </style> | 9 </style> |
| 9 <script src="resources/text-based-repaint.js" type="text/javascript"></script> | 10 <script src="resources/paint-invalidation-test.js" type="text/javascript"></scri
pt> |
| 10 <script> | 11 <script> |
| 11 if (window.testRunner) | 12 if (window.testRunner) |
| 12 window.internals.settings.setPreferCompositingToLCDTextEnabled(false); | 13 window.internals.settings.setPreferCompositingToLCDTextEnabled(false); |
| 13 | 14 |
| 14 function repaintTest() { | 15 window.expectedPaintInvalidationObjects = [ |
| 16 "##ALL##", |
| 17 "LayoutView #document", |
| 18 ]; |
| 19 function paintInvalidationTest() { |
| 15 window.scrollTo(0, 1000); | 20 window.scrollTo(0, 1000); |
| 16 } | 21 } |
| 17 | 22 |
| 18 window.onload = function() { | 23 window.onload = function() { |
| 19 runRepaintTest(); | 24 runPaintInvalidationTest(); |
| 20 }; | 25 }; |
| 21 </script> | 26 </script> |
| 22 <div style="height: 5000px"> | 27 <div style="height: 5000px"> |
| 23 Tests that scrolling a frame with background-attachment: fixed invalidates the e
ntire viewport. | 28 Tests that scrolling a frame with background-attachment: fixed invalidates the e
ntire viewport. |
| 24 </div> | 29 </div> |
| OLD | NEW |