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

Side by Side Diff: LayoutTests/fast/overflow/rtl-scrollbar-drag-origin.html

Issue 302603009: Fix scrollbar thumb drag cancellation in RTL mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mac's scrollbar behavior is different from Aura Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #container {
4 position: absolute;
5 left: 100px;
6 top: 0;
7 width: 300px;
8 height: 200px;
9 direction: rtl;
10 overflow: scroll;
11 }
12
13 #content {
14 width: 1000px;
15 height: 1px;
16 }
17 </style>
18 <div id="container">
19 <div id="content">
20 </div>
21 </div>
22 This test verifies scroll position restores correctly when a thumb drag has been cancelled in RTL mode.
23 <script src="../../resources/js-test.js"></script>
24 <script>
25 var container = document.getElementById("container");
26 container.scrollLeft = 350;
27
28 if (window.eventSender) {
29 eventSender.dragMode = false;
30 eventSender.mouseMoveTo(250, 195);
31 eventSender.mouseDown();
32
33 eventSender.mouseMoveTo(100, 195);
34 shouldBe("container.scrollLeft" , "0");
35
36 eventSender.mouseMoveTo(0, 195);
37 shouldBe("container.scrollLeft" , "350");
38 }
39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698