4 <title>Scrollbar thumb re-rendering on hover
</title>
10 background-color: red;
11 -webkit-appearance: none;
14 #scrollable::-webkit-scrollbar {
16 background-color: red;
19 #scrollable::-webkit-scrollbar-thumb {
20 background-color: red;
24 background-color: green;
27 #scrollable:hover::-webkit-scrollbar {
28 background-color: green;
31 #scrollable:hover::-webkit-scrollbar-thumb {
32 background-color: green;
42 <p>Bug
<a href=
"http://webkit.org/b/109230">109230</a>: REGRESSION(r130089): Scrollbar thumb no longer re-rendered on hover
</p>
43 <p>For this test to pass, the below box should be green (in DumpRenderTree).
<br>
44 Interactively, the whole box should turn green on mouseover, even if not over the scrollbar thumb.
</p>
46 <div id=
"content"></div>
49 function hoverOverScrollable()
51 if (!window
.testRunner
)
54 var scrollable
= document
.getElementById('scrollable');
55 var scrollBox
= scrollable
.getBoundingClientRect();
56 var scrollableCenterX
= (scrollBox
.left
+ scrollBox
.right
) / 2;
57 var scrollableCenterY
= (scrollBox
.top
+ scrollBox
.bottom
) / 2;
59 eventSender
.mouseMoveTo(scrollableCenterX
, scrollableCenterY
);
61 window
.addEventListener('load', hoverOverScrollable
);