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

Unified 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: 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/scroll-behavior/overflow-scroll-with-local-background-and-text.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-with-local-background-and-text.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-with-local-background-and-text.html
new file mode 100644
index 0000000000000000000000000000000000000000..940b9f46edb93cc3ce4d9d3fc6ab29acae4be642
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/overflow-scroll-with-local-background-and-text.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+onload = function() {
wkorman 2016/08/18 23:48:11 This is test case from flackr@ via http://crbug.co
+ // Double rAF to ensure content is painted before scroll.
+ requestAnimationFrame(function() {
+ requestAnimationFrame(scrollToBottom);
+ });
+}
+
+function scrollToBottom() {
+ scroller.scrollTop = 500;
+ if (window.testRunner)
+ window.testRunner.notifyDone();
+}
+</script>
+<style>
+#scroller {
+ background: gray local;
+ border: 10px solid green;
+ overflow: scroll;
+ width: 200px;
+ height: 200px;
+ will-change: transform;
+}
+
+#spacer {
+ height: 500px;
+}
+</style>
+<!-- Test that the background is correctly repainted when the scrolled content
+ grows in size. -->
+<div id="scroller">
+ <div id="spacer"></div>
+ <p>Text content</p>
+</div>

Powered by Google App Engine
This is Rietveld 408576698