Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-with-local-background-and-text.html

Issue 2254893005: Fix visual rect for background box painting in composited scrollers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor cleanup. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698