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