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

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

Issue 2483113002: Disable scrollbar snapback on desktop Linux (Reland) (Closed)
Patch Set: Update test comment Created 4 years, 1 month 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #container { 3 #container {
4 position: absolute; 4 position: absolute;
5 left: 100px; 5 left: 100px;
6 top: 0; 6 top: 0;
7 width: 300px; 7 width: 300px;
8 height: 200px; 8 height: 200px;
9 direction: rtl; 9 direction: rtl;
10 overflow: scroll; 10 overflow: scroll;
11 } 11 }
12 12
13 #content { 13 #content {
14 width: 1000px; 14 width: 1000px;
15 height: 1px; 15 height: 1px;
16 } 16 }
17 </style> 17 </style>
18 <div id="container"> 18 <div id="container">
19 <div id="content"> 19 <div id="content">
20 </div> 20 </div>
21 </div> 21 </div>
22 This test verifies scroll position restores correctly when a thumb drag has been cancelled in RTL mode.<br/> 22 This test verifies scroll position restores correctly when a thumb drag has been cancelled in RTL mode.<br/>
23 This test is expected to fail on Mac because it doesn't cancel scrolling when mo use cursor is out of a certain range. It is Aura-specific behavior. 23 This test is expected to fail on Mac and Linux because those platforms don't can cel scrolling when mouse cursor is out of a certain range. It is Windows-specifi c behavior.
24 <script src="../../resources/js-test.js"></script> 24 <script src="../../resources/js-test.js"></script>
25 <script> 25 <script>
26 var container = document.getElementById("container"); 26 var container = document.getElementById("container");
27 container.scrollLeft = 350; 27 container.scrollLeft = 350;
28 28
29 if (window.eventSender) { 29 if (window.eventSender) {
30 eventSender.dragMode = false; 30 eventSender.dragMode = false;
31 eventSender.mouseMoveTo(250, 195); 31 eventSender.mouseMoveTo(250, 195);
32 eventSender.mouseDown(); 32 eventSender.mouseDown();
33 33
34 eventSender.mouseMoveTo(100, 195); 34 eventSender.mouseMoveTo(100, 195);
35 shouldBe("container.scrollLeft" , "0"); 35 shouldBe("container.scrollLeft" , "0");
36 36
37 eventSender.mouseMoveTo(100, 700); 37 eventSender.mouseMoveTo(100, 700);
38 shouldBe("container.scrollLeft" , "350"); 38 shouldBe("container.scrollLeft" , "350");
39 } 39 }
40 </script> 40 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698