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

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

Issue 1213353003: More fixes for position:fixed with root layer scrolling. (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/fixed-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/fixed-position-behind-scrollbar.html
diff --git a/LayoutTests/fast/scrolling/fixed-position-behind-scrollbar.html b/LayoutTests/fast/scrolling/fixed-position-behind-scrollbar.html
new file mode 100644
index 0000000000000000000000000000000000000000..df860f23c72deaa91ac75f55987b2bbb25204191
--- /dev/null
+++ b/LayoutTests/fast/scrolling/fixed-position-behind-scrollbar.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+#f {
+ position: fixed;
+ background-color: #def;
+ width: 600px;
+ height: 400px;
+ right: -20px;
+ bottom: -20px;
+}
+body {
+ width: 1000px;
+ height: 1000px;
+}
+</style>
+Tests that the scrollbar can be clicked even when it clips a position:fixed
+element, and that the scrollbars are excluded from the viewport for determining
+the element's position.
+<div id="f"></div>
+<script>
+
+eventSender.mouseMoveTo(790, 500);
+eventSender.mouseDown();
+eventSender.mouseUp();
+
+var rect = document.querySelector("#f").getBoundingClientRect();
+
+shouldBeTrue(String(scrollY > 0));
+shouldBe(rect.left + "," + rect.top, "205,205");
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/fixed-position-behind-scrollbar-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698