Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6 @namespace html url("http://www.w3.org/1999/xhtml");
8 scrollbar {
9 -moz-appearance: scrollbar;
10 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar);
11 cursor: default;
12 background-color: white;
13 pointer-events: auto;
14 }
16 scrollbar[root="true"] {
17 position: relative;
18 z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
19 }
21 html|select[size]:not([size="0"]):not([size="1"]) > scrollbar,
22 html|select[multiple] > scrollbar {
23 -moz-appearance: scrollbar-small;
24 }
26 @media all and (-moz-overlay-scrollbars) {
27 scrollbar:not([active="true"]),
28 scrollbar[disabled="true"] {
29 visibility: hidden;
30 }
31 }
33 /* ..... track ..... */
35 slider {
36 -moz-appearance: scrollbartrack-horizontal;
37 }
39 slider[orient="vertical"] {
40 -moz-appearance: scrollbartrack-vertical;
41 }
43 /* ..... thumb ..... */
45 thumb {
46 -moz-appearance: scrollbarthumb-horizontal;
47 }
49 thumb[orient="vertical"] {
50 -moz-appearance: scrollbarthumb-vertical;
51 }
53 /* ..... increment ..... */
55 scrollbarbutton[type="increment"] {
56 -moz-appearance: scrollbarbutton-right;
57 }
59 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
60 -moz-appearance: scrollbarbutton-down;
61 }
63 /* ..... decrement ..... */
65 scrollbarbutton[type="decrement"] {
66 -moz-appearance: scrollbarbutton-left;
67 }
69 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
70 -moz-appearance: scrollbarbutton-up;
71 }
73 /* ::::: square at the corner of two scrollbars ::::: */
75 scrollcorner {
76 /* XXX -moz-appearance: scrollcorner; */
77 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
78 width: 16px;
79 cursor: default;
80 background-color: white;
81 }
83 /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
84 @media print {
85 html|div scrollbar {
86 -moz-appearance: scrollbar;
87 -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar);
88 cursor: default;
89 }
90 }