12 /* Horizontal Scrollbar Styles */
14 ::-webkit-scrollbar:horizontal {
15 -webkit-border-image: url(resources/horizontal-button.png)
0 2 0 2;
16 border-color: transparent;
18 background-image: url(resources/horizontal-button-background.png);
19 background-repeat: repeat-x;
22 ::-webkit-scrollbar-thumb:horizontal {
23 -webkit-border-image: url(resources/horizontal-thumb.png)
0 20 0 20;
24 border-color: transparent;
29 ::-webkit-scrollbar-track-piece:horizontal:decrement {
30 -webkit-border-image: url(resources/horizontal-track.png)
0 20 0 20;
31 border-color: transparent;
32 border-width:
0 0 0 20px;
35 ::-webkit-scrollbar-track-piece:horizontal:increment {
36 -webkit-border-image: url(resources/horizontal-track.png)
0 20 0 20;
37 border-color: transparent;
38 border-width:
0 20px
0 0;
41 ::-webkit-scrollbar-button:horizontal {
43 -webkit-border-image: url(resources/horizontal-button.png)
0 2 0 2;
44 border-color: transparent;
48 ::-webkit-scrollbar-button:horizontal:decrement {
49 background-image: url(resources/horizontal-decrement-arrow.png), url(resources/horizontal-button-background.png);
50 background-repeat: no-repeat, repeat-x;
51 background-position:
2px
3px,
0 0;
54 ::-webkit-scrollbar-button:horizontal:increment {
55 background-image: url(resources/horizontal-increment-arrow.png), url(resources/horizontal-button-background.png);
56 background-repeat: no-repeat, repeat-x;
57 background-position:
7px
3px,
0 0;
64 background-color: silver;
73 -webkit-box-sizing: border-box;
74 border:
1px solid black;
83 function showScroller()
85 var scroller
= document
.createElement('div');
86 scroller
.className
= 'scroller';
88 var contents
= document
.createElement('div')
89 contents
.className
= 'inner';
90 contents
.appendChild(document
.createTextNode('inner'));
92 scroller
.appendChild(contents
);
94 document
.getElementById('container').appendChild(scroller
);
97 function hideScroller()
99 var scroller
= document
.getElementById('container').querySelectorAll('.scroller')[0];
100 scroller
.parentNode
.removeChild(scroller
);
104 if (window
.testRunner
)
105 testRunner
.dumpAsText();
107 if (window
.eventSender
) {
108 eventSender
.dragMode
= false;
109 eventSender
.mouseMoveTo(50, 40);
110 eventSender
.mouseMoveTo(50, 55);
111 eventSender
.mouseMoveTo(50, 90);
112 eventSender
.mouseDown();
113 eventSender
.mouseUp();
114 eventSender
.mouseMoveTo(50, 120);
118 window
.addEventListener('load', doTest
, false);
122 <div id=
"container" class=
"container" onmouseover=
"showScroller()" onmouseout=
"hideScroller()">
124 <p>This test should not crash
</p>