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

Unified Diff: LayoutTests/fast/scrolling/scrollbar-repaint-two-level-scrollable.html

Issue 1142283006: [SP] Always paint whole non-custom scrollbars (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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: LayoutTests/fast/scrolling/scrollbar-repaint-two-level-scrollable.html
diff --git a/LayoutTests/fast/scrolling/scrollbar-repaint-two-level-scrollable.html b/LayoutTests/fast/scrolling/scrollbar-repaint-two-level-scrollable.html
new file mode 100644
index 0000000000000000000000000000000000000000..1294a9c0e4cd73b0dae2cd676c8f819f8f8bb748
--- /dev/null
+++ b/LayoutTests/fast/scrolling/scrollbar-repaint-two-level-scrollable.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+onload = function() {
+ // Expose left part of the inner horizontal scrollbar first.
+ document.getElementById('outer').scrollTop = 250;
+ runAfterLayoutAndPaint(function() {
+ // Expose the forward track and forward button of the inner horizontal scrollbar.
+ document.getElementById('outer').scrollLeft = 250;
+ }, true);
+};
+</script>
+Tests invalidation and painting of scrollbar parts of a scroll area contained by another scroll area, when scrolling of the outer scroll area exposes a new port of the inner scrollbar. Passes if no assertion failure.
+<div id="outer" style="position: absolute; top: 100px; left: 50px; width: 200px; height: 200px; overflow: scroll">
+ <div id="inner" style="width: 400px; height: 400px; overflow: scroll">
+ <div style="height: 500px; width: 100%; border: 1px solid black">PASS</div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698