proper detection

This commit is contained in:
Henry Jameson 2025-07-17 17:55:20 +03:00
commit 04ee1a892c

View file

@ -26,7 +26,7 @@ export const createStyleSheet = (id, priority = 1000) => {
}
// firefox doesn't like invalid selectors
if (!CSS.supports?.('::-webkit') && newRule.startsWith('::-webkit')) {
if (!CSS.supports?.('selector(::-webkit-scrollbar)') && newRule.startsWith('::-webkit')) {
return
}
this.rules.push(