OLD | NEW |
(Empty) | |
| 1 <script> |
| 2 if (window.testRunner) |
| 3 testRunner.waitUntilDone(); |
| 4 |
| 5 onload = function() { |
| 6 // Double rAF to ensure content is painted before scroll. |
| 7 requestAnimationFrame(function() { |
| 8 requestAnimationFrame(scrollToBottom); |
| 9 }); |
| 10 } |
| 11 |
| 12 function scrollToBottom() { |
| 13 document.getElementById('scroller').scrollTop = 500; |
| 14 if (window.testRunner) |
| 15 window.testRunner.notifyDone(); |
| 16 } |
| 17 </script> |
| 18 <style> |
| 19 #scroller { |
| 20 background: gray local; |
| 21 border: 10px solid green; |
| 22 overflow: scroll; |
| 23 width: 200px; |
| 24 height: 200px; |
| 25 will-change: transform; |
| 26 } |
| 27 |
| 28 #spacer { |
| 29 height: 500px; |
| 30 } |
| 31 </style> |
| 32 <!-- Test that the background is correctly repainted when the scrolled content |
| 33 grows in size. --> |
| 34 <div id="scroller"> |
| 35 <div id="spacer"></div> |
| 36 <p>Text content</p> |
| 37 </div> |
OLD | NEW |