Bug 994861. Only overlay scrollbars should be positioned and have z-index. r=roc

Bug 896443 added these but didn't guard them on overlay scrollbars.

When drawing the scrollbars layout interprets a positioned scrollbar as an scrollbar that should be placed above the content (like overlay scrollbars). Classic scrollbars should be drawn in the background layer.
This commit is contained in:
Timothy Nikkel 2014-04-14 13:16:30 -05:00
parent 3c56ccd198
commit f3071a3d05
2 changed files with 20 additions and 20 deletions

View File

@ -13,9 +13,16 @@ scrollbar {
pointer-events: auto;
}
scrollbar[root="true"] {
position: relative;
z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
@media all and (-moz-overlay-scrollbars) {
scrollbar[root="true"] {
position: relative;
z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
}
scrollbar:not([active="true"]),
scrollbar[disabled="true"] {
visibility: hidden;
}
}
html|select[size]:not([size="0"]):not([size="1"]) > scrollbar,
@ -23,13 +30,6 @@ html|select[multiple] > scrollbar {
-moz-appearance: scrollbar-small;
}
@media all and (-moz-overlay-scrollbars) {
scrollbar:not([active="true"]),
scrollbar[disabled="true"] {
visibility: hidden;
}
}
/* ..... track ..... */
slider {

View File

@ -19,9 +19,16 @@ scrollbar {
pointer-events: auto;
}
scrollbar[root="true"] {
position: relative;
z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
@media all and (-moz-overlay-scrollbars) {
scrollbar[root="true"] {
position: relative;
z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
}
scrollbar:not([active="true"]),
scrollbar[disabled="true"] {
visibility: hidden;
}
}
scrollbar[orient="vertical"]
@ -29,13 +36,6 @@ scrollbar[orient="vertical"]
-moz-appearance: scrollbartrack-vertical;
}
@media all and (-moz-overlay-scrollbars) {
scrollbar:not([active="true"]),
scrollbar[disabled="true"] {
visibility: hidden;
}
}
/* ::::: borders for thumb and buttons ::::: */
thumb,