From 43deb8c783f48168673fc727cb53a3908c3c9aad Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 11 Oct 2019 14:01:55 +0300 Subject: [PATCH] wrap the fx71 selectors in @moz-document --- chrome/multi-row_tabs.css | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/chrome/multi-row_tabs.css b/chrome/multi-row_tabs.css index 24bbe4e..7fa30fa 100644 --- a/chrome/multi-row_tabs.css +++ b/chrome/multi-row_tabs.css @@ -20,17 +20,19 @@ } /* Selectors for Firefox 71+ */ /* These are not tabs toolbar specific but horizontal scrollbox isn't used elsewhere, except in bookmarks toolbar but there it doesn't have [part] attribute since it's not in shadow-root */ -.scrollbutton-up[orient="horizontal"][part]~spacer, -.scrollbutton-up[orient="horizontal"][part], -.scrollbutton-down[orient="horizontal"][part]{ display: none } +@-moz-document url(chrome://browser/content/browser.xhtml){ + .scrollbutton-up[orient="horizontal"][part]~spacer, + .scrollbutton-up[orient="horizontal"][part], + .scrollbutton-down[orient="horizontal"][part]{ display: none } -scrollbox[part][orient="horizontal"]{ - display: flex; - flex-wrap: wrap; - overflow-y: auto; - max-height: calc(var(--tab-min-height) * var(--multirow-n-rows)); - scrollbar-color: currentColor transparent; - scrollbar-width: thin; + scrollbox[part][orient="horizontal"]{ + display: flex; + flex-wrap: wrap; + overflow-y: auto; + max-height: calc(var(--tab-min-height) * var(--multirow-n-rows)); + scrollbar-color: currentColor transparent; + scrollbar-width: thin; + } } /* Test for Firefox > 66 */