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