Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Gate Firefox-only scrollbar rules on the engine, not a selector

Vincenzo Fabianoa786dcfe5e23
diff --git a/src/styles.css b/src/styles.css
index 7f9584e723..b33c14c402 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -2292,10 +2292,13 @@ body {
/* Firefox does not inherit scrollbar-color from :root; every overflow pane
(dialogs, menus, settings, chat) gets the same thumb as WebKit above.
- Firefox only: in Chromium, setting scrollbar-color on an element turns off
- its ::-webkit-scrollbar rules there, which drops the glass track margins
- (.glass-scroller) that keep the thumb clear of the glass bars. */
-@supports not selector(::-webkit-scrollbar) {
+ The gate is the engine, not a selector: -moz-appearance is a Gecko property
+ that Chromium does not recognize, so this holds in every Firefox version and
+ never in Chromium. Testing a webkit selector instead is fragile, because a
+ Firefox release can answer it differently. In Chromium, setting
+ scrollbar-color on an element turns off its ::-webkit-scrollbar rules there,
+ which drops the glass track margins (.glass-scroller). */
+@supports (-moz-appearance: none) {
:is(.overflow-y-auto, .overflow-auto, .overflow-x-auto, .overflow-y-scroll, .overflow-x-scroll, .overflow-scroll) {
scrollbar-width: thin;
scrollbar-color: var(--color-scrollbar) transparent;