mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
support css variables in sanitize
This commit is contained in:
parent
e57232f89c
commit
ef194424e3
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ const addStyles = (output: string[], styles: CSSStyleDeclaration) => {
|
|||
} else if (typeof value === 'number') {
|
||||
output.push(`${key}:${value}${priorityString};`);
|
||||
}
|
||||
} else if (styles.getPropertyValue(key)) {
|
||||
// These will not override the value unless not declared !important
|
||||
output.push(`${key}: ${styles.getPropertyValue(key)} !important;`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue