Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #bloat { | |
| 4 height: 1000px; | |
| 5 } | |
| 6 | |
| 7 #composited-background-attachment-fixed { | |
| 8 position: absolute; | |
| 9 left: 50px; | |
| 10 top: 200px; | |
| 11 width: 500px; | |
| 12 height: 1000px; | |
| 13 background: url('resources/grid.png') fixed; | |
| 14 will-change: opacity; | |
| 15 } | |
| 16 </style> | |
| 17 <div id="bloat"> | |
| 18 The test verifies background-attachment:fixed gets invalidated after scroll even if they are composited. | |
| 19 </div> | |
| 20 <div id="composited-background-attachment-fixed"></div> | |
| 21 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
| 22 <script> | |
| 23 document.body.offsetTop; | |
| 24 runAfterLayoutAndPaint(function() { | |
| 25 scrollTo(0, 123); | |
| 26 }, true); | |
| 27 </script> | |
| OLD | NEW |