2 <script src=
"../resources/run-after-layout-and-paint.js"></script>
4 /* Let's get this party started */
11 ::-webkit-scrollbar-track {
12 -webkit-box-shadow: inset
0 0 6px rgba(
0,
0,
0,
0.3);
13 -webkit-border-radius:
10px;
18 ::-webkit-scrollbar-thumb {
19 -webkit-border-radius:
10px;
21 background: rgba(
255,
0,
0,
0.8);
22 -webkit-box-shadow: inset
0 0 6px rgba(
0,
0,
0,
0.5);
26 <iframe src=
"resources/scrollable-iframe.html"></iframe>
27 <iframe src=
"resources/scrollable-iframe.html"></iframe>
29 if (window
.testRunner
)
30 testRunner
.waitUntilDone();
31 var styleElement
= document
.createElement("style");
32 var sheet
= document
.head
.appendChild(styleElement
).sheet
;
34 function addRule(selector
, css
){
35 var propText
= Object
.keys(css
).map(function(p
){
38 sheet
.insertRule(selector
+ "{" + propText
+ "}", sheet
.cssRules
.length
);
40 addRule("::-webkit-scrollbar", {width
: "20px",height
: "25px"});
41 if (window
.testRunner
)
42 testRunner
.notifyDone();
44 runAfterLayoutAndPaint(addStyle
);