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

This commit is contained in:
MoyuScript 2021-07-14 22:49:52 +08:00
parent 1e393abb51
commit 499b7fac8e

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));
}
}