Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / scrolling / unscrollable-subpixel-overflow-mouse-drag.html
blobc23d341876efbb09f9bd2077f6c8894e34b0ffad
1 <!DOCTYPE html>
2 <style>
3 body {
4 zoom: 175%;
5 margin: 0;
7 #container {
8 overflow-y: scroll;
9 width: 200px;
10 height: 200px;
12 #content {
13 background-color: green;
14 width: 100px;
15 height: 200.3px;
17 </style>
18 Tests scroll behavior when an unscrollable scrollbar thumb is dragged by mouse.
19 Passes if neither the thumb or the content changes.
20 <div id="container">
21 <div id="content"></div>
22 </div>
23 <script src="../../resources/js-test.js"></script>
24 <script>
25 if (window.eventSender) {
26 onload = function() {
27 var container = document.getElementById('container');
28 eventSender.mouseMoveTo(340, 200);
29 eventSender.mouseDown();
30 eventSender.mouseMoveTo(340, 250);
31 eventSender.mouseUp();
32 shouldBe("container.scrollTop", "0");
35 </script>