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

Side by Side 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, 5 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #f {
5 position: fixed;
6 background-color: #def;
7 width: 600px;
8 height: 400px;
9 right: -20px;
10 bottom: -20px;
11 }
12 body {
13 width: 1000px;
14 height: 1000px;
15 }
16 </style>
17 Tests that the scrollbar can be clicked even when it clips a position:fixed
18 element, and that the scrollbars are excluded from the viewport for determining
19 the element's position.
20 <div id="f"></div>
21 <script>
22
23 eventSender.mouseMoveTo(790, 500);
24 eventSender.mouseDown();
25 eventSender.mouseUp();
26
27 var rect = document.querySelector("#f").getBoundingClientRect();
28
29 shouldBeTrue(String(scrollY > 0));
30 shouldBe(rect.left + "," + rect.top, "205,205");
31
32 </script>
OLDNEW
« 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