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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html b/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..b29642e1a0aa27f3a81f7881e35e7180a4c3b11f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/overflow-scroll-local-background-text-color-change.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
wkorman 2016/08/18 23:48:11 This new test is a version of flackr@'s fast/scrol
+<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<style>
+#scroller {
+ background: gray local;
+ overflow: scroll;
+ width: 200px;
+ height: 200px;
+ will-change: transform;
+}
+
+#spacer {
+ height: 500px;
+}
+</style>
+<!-- Passes if text in scroller is visible and scroller background is blue. -->
+<div id="scroller">
+ <div id="spacer"></div>
+ <p>Text content</p>
+</div>
+<script>
+window.testIsAsync = true;
+
+function repaintTest() {
+ scroller.scrollTop = 500;
+ scroller.style.backgroundColor = 'blue';
+ finishRepaintTest();
+}
+
+onload = runRepaintAndPixelTest;
+</script>

Powered by Google App Engine
This is Rietveld 408576698