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

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: Deal with delayed-invalidation object. 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 <!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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698