fix: don't copy 'all' css property (#2586)

This commit is contained in:
Niklas von Hertzen 2021-07-14 22:49:52 +08:00 committed by GitHub
parent 99b687c412
commit fa60716d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,7 +448,7 @@ export const copyCSSStyles = <T extends HTMLElement | SVGElement>(style: CSSStyl
for (let i = style.length - 1; i >= 0; i--) {
const property = style.item(i);
// Safari shows pseudoelements if content is set
if (property !== 'content') {
if (property !== 'content' && property !== 'all') {
target.style.setProperty(property, style.getPropertyValue(property));
}
}