OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 3 <style> |
| 4 #scroller { |
| 5 background: gray local; |
| 6 border: 10px solid green; |
| 7 overflow: scroll; |
| 8 width: 200px; |
| 9 height: 200px; |
| 10 will-change: transform; |
| 11 } |
| 12 |
| 13 #spacer { |
| 14 height: 500px; |
| 15 } |
| 16 </style> |
| 17 <!-- Test that the background is correctly repainted when the scrolled content |
| 18 grows in size. --> |
| 19 <div id="scroller"> |
| 20 <div id="spacer"></div> |
| 21 <p>Text content</p> |
| 22 </div> |
| 23 <script> |
| 24 if (window.testRunner) |
| 25 testRunner.waitUntilDone(); |
| 26 |
| 27 onload = runAfterLayoutAndPaint(function() { |
| 28 scroller.scrollTop = 500; |
| 29 if (window.testRunner) |
| 30 testRunner.notifyDone(); |
| 31 }); |
| 32 </script> |
OLD | NEW |