Bug 1383879 - Always position the nav-bar when the TabsToolbar is not collapsed since the positioning of the animations is dependent on the container having position:relative. r?gijs
We don't need to position the nav-bar if the TabsToolbar is collapsed since the buttons that we would animate (such as stop/reload) are display:none when the TabsToolbar is hidden.
MozReview-Commit-ID: EUkHz3erxM
--- a/browser/themes/osx/browser.css
+++ b/browser/themes/osx/browser.css
@@ -268,16 +268,22 @@ toolbar:-moz-lwtheme {
z-index: 1;
}
#main-window[tabsintitlebar] #TabsToolbar:not([collapsed="true"]) + #nav-bar:-moz-window-inactive:not(:-moz-lwtheme) {
border-top-color: hsla(0,0%,0%,.05);
}
}
+#TabsToolbar:not([collapsed="true"]) + #nav-bar {
+ /* The toolbar buttons that animate are only visible when the #TabsToolbar is not collapsed.
+ The animations use position:absolute and require a positioned #nav-bar. */
+ position: relative;
+}
+
#PersonalToolbar {
padding: 0 4px 4px;
}
#PersonalToolbar:not([collapsed=true]) {
/* 4px padding ^ plus 19px personal-bookmarks (see below) */
min-height: 23px;
}