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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar.html

Issue 2411193002: Account for non-composited scroll offset of scrollbars. (Closed)
Patch Set: none Created 4 years, 2 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/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar.html b/third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar.html
new file mode 100644
index 0000000000000000000000000000000000000000..5b06ee81f65be16616e8c79d7bc5b6f7f88efc33
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-yet-scrolled-with-custom-scrollbar.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<script src="resources/text-based-repaint.js"></script>
+<style>
+::-webkit-scrollbar {
+ width: 12px;
+ height: 12px;
+ background: green;
+}
+</style>
+<!-- Checks that paint invalidation for the custom scrollbar of 'target' is computed correctly after scroll of 'scroller'.
+The invalidation rects should be correct, and the horizontal & vertical scrollbars should appear in green. -->
+<div id="scroller" style="overflow: hidden; width: 300px; height: 300px; backface-visibility: hidden; border: 1px solid black">
+ <div style="width: 300px; height: 600px"></div>
+ <div id=target style="width: 100px; height: 100px; background: lightgray; overflow: scroll">
+ </div>
+</div>
+<script>
+onload = runRepaintTest;
+
+function repaintTest() {
+ scroller.scrollTop = 400;
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698