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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.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: Invalidate scrolling contents layer and mark paint layer setNeedsRepaint. 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>
wkorman 2016/08/18 23:48:11 This new test is a version of flackr@'s fast/scrol
2 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
3 <style>
4 #scroller {
5 background: gray local;
6 overflow: scroll;
7 width: 200px;
8 height: 200px;
9 will-change: transform;
10 }
11
12 #spacer {
13 height: 500px;
14 }
15 </style>
16 <!-- Passes if text in scroller is visible and scroller background is blue. -->
17 <div id="scroller">
18 <div id="spacer"></div>
19 <p>Text content</p>
20 </div>
21 <script>
22 window.testIsAsync = true;
23
24 function repaintTest() {
25 scroller.scrollTop = 500;
26 scroller.style.backgroundColor = 'blue';
27 finishRepaintTest();
28 }
29
30 onload = runRepaintAndPixelTest;
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698