OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <style> | 3 <style> |
4 .scroller::-webkit-scrollbar { | 4 .scroller::-webkit-scrollbar { |
5 height: 5px; | 5 height: 5px; |
6 } | 6 } |
7 | 7 |
8 .scroller { | 8 .scroller { |
9 width: 200px; | 9 width: 200px; |
10 height: 10px; | 10 height: 10px; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // | 99 // |
100 // ::-webkit-scrollbar: 1 scrollbar pseudo element (in total 3 and 8) | 100 // ::-webkit-scrollbar: 1 scrollbar pseudo element (in total 3 and 8) |
101 // ::-webkit-scrollbar-button: 1 scrollbar + 4 buttons (in total 7 and 12) | 101 // ::-webkit-scrollbar-button: 1 scrollbar + 4 buttons (in total 7 and 12) |
102 // ::-webkit-scrollbar-corner: 1 scrollbar + 1 corner (in total 4 and 9) | 102 // ::-webkit-scrollbar-corner: 1 scrollbar + 1 corner (in total 4 and 9) |
103 // ::-webkit-scrollbar-thumb: 1 scrollbar + 1 thumb (in total 4 and 9) | 103 // ::-webkit-scrollbar-thumb: 1 scrollbar + 1 thumb (in total 4 and 9) |
104 // ::-webkit-scrollbar-track: 1 scrollbar + 1 track (in total 4 and 9) | 104 // ::-webkit-scrollbar-track: 1 scrollbar + 1 track (in total 4 and 9) |
105 // ::-webkit-scrollbar-track-piece: 1 scrollbar + 2 track pieces (in total 5 and
10) | 105 // ::-webkit-scrollbar-track-piece: 1 scrollbar + 2 track pieces (in total 5 and
10) |
106 // ::-webkit-resizer: 1 scrollbar + 1 resizer (in total 4 and 9) | 106 // ::-webkit-resizer: 1 scrollbar + 1 resizer (in total 4 and 9) |
107 | 107 |
108 testScrollbarPseudo("::-webkit-scrollbar", "scroller1", scrollerParent, "t1", 2)
; | 108 testScrollbarPseudo("::-webkit-scrollbar", "scroller1", scrollerParent, "t1", 2)
; |
109 testScrollbarPseudo("::-webkit-scrollbar", "scroller2", scrollerSibling, "t2", 8
); | 109 testScrollbarPseudo("::-webkit-scrollbar", "scroller2", scrollerSibling, "t2", 2
); |
110 testScrollbarPseudo("::-webkit-scrollbar-button", "scroller1", scrollerParent, "
t3", 6); | 110 testScrollbarPseudo("::-webkit-scrollbar-button", "scroller1", scrollerParent, "
t3", 6); |
111 testScrollbarPseudo("::-webkit-scrollbar-button", "scroller2", scrollerSibling,
"t4", 12); | 111 testScrollbarPseudo("::-webkit-scrollbar-button", "scroller2", scrollerSibling,
"t4", 6); |
112 testScrollbarPseudo("::-webkit-scrollbar-corner", "scroller1", scrollerParent, "
t5", 3); | 112 testScrollbarPseudo("::-webkit-scrollbar-corner", "scroller1", scrollerParent, "
t5", 3); |
113 testScrollbarPseudo("::-webkit-scrollbar-corner", "scroller2", scrollerSibling,
"t6", 9); | 113 testScrollbarPseudo("::-webkit-scrollbar-corner", "scroller2", scrollerSibling,
"t6", 3); |
114 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller1", scrollerParent, "t
7", 3); | 114 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller1", scrollerParent, "t
7", 3); |
115 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller2", scrollerSibling, "
t8", 9); | 115 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller2", scrollerSibling, "
t8", 3); |
116 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller1", scrollerParent, "t
9", 3); | 116 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller1", scrollerParent, "t
9", 3); |
117 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller2", scrollerSibling, "
t10", 9); | 117 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller2", scrollerSibling, "
t10", 3); |
118 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller1", scrollerPare
nt, "t11", 4); | 118 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller1", scrollerPare
nt, "t11", 4); |
119 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller2", scrollerSibl
ing, "t12", 10); | 119 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller2", scrollerSibl
ing, "t12", 4); |
120 testScrollbarPseudo("::-webkit-resizer", "scroller1", scrollerParent, "t13", 3); | 120 testScrollbarPseudo("::-webkit-resizer", "scroller1", scrollerParent, "t13", 3); |
121 testScrollbarPseudo("::-webkit-resizer", "scroller2", scrollerSibling, "t14", 9)
; | 121 testScrollbarPseudo("::-webkit-resizer", "scroller2", scrollerSibling, "t14", 3)
; |
122 </script> | 122 </script> |
OLD | NEW |