1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <title>Bug 60737 test case</title>
6 <style type="text/css">
7 /* Use customized scrollbar to avoid platform differences. */
13 ::-webkit-scrollbar-button {
16 background-color: blue;
19 ::-webkit-scrollbar-track-piece {
20 background-color: gray;
23 ::-webkit-scrollbar-thumb {
26 background-color: red;
31 <body style="margin:0px">
32 <div id="container" style="border:1px solid black; height:150px; width:100px; overflow:auto;">
33 <div id="expander" style="height:100px; width:5000px; background-color:green; border:2px solid red;">
36 <p id="result">Test did not run.</p>
38 if (window.layoutTestController)
39 layoutTestController.dumpAsText();
40 var container = document.getElementById("container");
41 container.scrollLeft = 2;
42 // Drag scrollbar thumber to left most:
43 if (window.eventSender) {
44 eventSender.mouseMoveTo(30, 145);
45 eventSender.mouseDown();
46 eventSender.mouseMoveTo(0, 145);
47 eventSender.mouseUp();
49 if (window.layoutTestController)
50 document.getElementById("result").innerText = container.scrollLeft == 0 ? "PASS" : "FAIL";