Compare commits
4 commits
081a77ee0c
...
33a0e4b2b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33a0e4b2b9 | ||
|
|
04ee1a892c | ||
|
|
23975b506e | ||
|
|
c12e1a69cf |
1 changed files with 7 additions and 0 deletions
|
|
@ -24,6 +24,11 @@ export const createStyleSheet = (id, priority = 1000) => {
|
|||
if (!CSS.supports?.('backdrop-filter', 'blur()')) {
|
||||
newRule = newRule.replace(/backdrop-filter:[^;]+;/g, '') // Remove backdrop-filter
|
||||
}
|
||||
|
||||
// firefox doesn't like invalid selectors
|
||||
if (!CSS.supports?.('selector(::-webkit-scrollbar)') && newRule.startsWith('::-webkit')) {
|
||||
return
|
||||
}
|
||||
this.rules.push(
|
||||
newRule
|
||||
.replace(/var\(--shadowFilter\)[^;]*;/g, '') // Remove shadowFilter references
|
||||
|
|
@ -156,6 +161,8 @@ export const applyTheme = (
|
|||
const eagerStyles = createStyleSheet(EAGER_STYLE_ID, 10)
|
||||
const lazyStyles = createStyleSheet(LAZY_STYLE_ID, 20)
|
||||
|
||||
eagerStyles.clear()
|
||||
lazyStyles.clear()
|
||||
|
||||
const { lazyProcessFunc } = generateTheme(
|
||||
input,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue