Bug 1384581 - Define a default value for --toolbarbutton-height to prevent CSS errors when the property is applied before the more specific value has been set. r?gijs
MozReview-Commit-ID: 55IaJKzILNp
--- a/browser/themes/shared/toolbarbuttons.inc.css
+++ b/browser/themes/shared/toolbarbuttons.inc.css
@@ -24,16 +24,22 @@
%else
--backbutton-urlbar-overlap: 6px;
/* icon width + border + horizontal padding (without the overlap from backbutton-urlbar-overlap) */
--forwardbutton-width: 25px;
--toolbarbutton-inner-padding: 3px;
%endif
+%ifdef MOZ_PHOTON_ANIMATIONS
+ /* This default value of --toolbarbutton-height is defined to prevent
+ CSS errors for an invalid variable. The value should not get used,
+ as a more specific value should be set when the value will be used. */
+ --toolbarbutton-height: 0;
+%endif
}
/* Larger buttons in touch mode */
:root[uidensity=touch] {
--toolbarbutton-inner-padding: 9px;
}
%ifndef MOZ_PHOTON_THEME