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