fix firefox
This commit is contained in:
parent
74b410da2b
commit
c12e1a69cf
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@ export const createStyleSheet = (id, priority = 1000) => {
|
||||||
if (!CSS.supports?.('backdrop-filter', 'blur()')) {
|
if (!CSS.supports?.('backdrop-filter', 'blur()')) {
|
||||||
newRule = newRule.replace(/backdrop-filter:[^;]+;/g, '') // Remove backdrop-filter
|
newRule = newRule.replace(/backdrop-filter:[^;]+;/g, '') // Remove backdrop-filter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// firefox doesn't like invalid selectors
|
||||||
|
if (!CSS.supports?.('::-webkit') && newRule.startsWith('::-webkit')) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.rules.push(
|
this.rules.push(
|
||||||
newRule
|
newRule
|
||||||
.replace(/var\(--shadowFilter\)[^;]*;/g, '') // Remove shadowFilter references
|
.replace(/var\(--shadowFilter\)[^;]*;/g, '') // Remove shadowFilter references
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue