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

Unified Diff: LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html

Issue 1172153004: Absolute-position the initial containing block. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/absolute-position-behind-scrollbar-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
diff --git a/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html b/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
new file mode 100644
index 0000000000000000000000000000000000000000..9f1679037db9d90d64fee3f8f1811d7643a7712b
--- /dev/null
+++ b/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+#a {
+ position: absolute;
+ background-color: #def;
+ left: 100px;
+ top: 100px;
+ width: 1000px;
+ height: 1000px;
+}
+</style>
+Tests that the scrollbar can be clicked even when it clips absolute-positioned content.
+<div id="a"></div>
+<script>
+
+eventSender.mouseMoveTo(790, 500);
+eventSender.mouseDown();
+eventSender.mouseUp();
+
+shouldBeTrue(String(scrollY > 0));
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/absolute-position-behind-scrollbar-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698