Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / scrollbars / custom-scrollbar-adjust-on-inactive-pseudo.html
blob9e740ceff78f2d5075dfb9a2ab768fe9c51b2a00
1 <!DOCTYPE HTML>
2 <style>
3 /* Let's get this party started */
4 ::-webkit-scrollbar {
5 width: 12px;
6 height: 12px;
9 /* Track */
10 ::-webkit-scrollbar-track {
11 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
12 -webkit-border-radius: 10px;
13 border-radius: 10px;
16 /* Handle */
17 ::-webkit-scrollbar-thumb {
18 -webkit-border-radius: 10px;
19 border-radius: 10px;
20 background: rgba(255,0,0,0.8);
21 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
23 ::-webkit-scrollbar:window-inactive {
24 width: 150px;
25 height: 150px;
27 ::-webkit-scrollbar-thumb:window-inactive {
28 background: rgba(255,0,0,0.4);
29 -webkit-border-radius: 1px;
30 -webkit-box-shadow: inset 0 0 1px rgba(255,250,0,0.5);
32 body {
33 width: 1000px;
34 height: 1000px;
37 div{
38 width: 1500px;
39 height: 1500px;
41 </style>
42 <body>
43 <div></div>
44 </body>
45 <script>
46 document.body.offsetTop;
47 // setWindowIsKey shall set the focus of the window.
48 if (window.testRunner)
49 window.testRunner.setWindowIsKey(false);
50 </script>