From fa60716d07ed590ec64543a586a7960cbc8557df Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Wed, 14 Jul 2021 22:49:52 +0800 Subject: [PATCH] fix: don't copy 'all' css property (#2586) --- src/dom/document-cloner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/document-cloner.ts b/src/dom/document-cloner.ts index b4a234e..07bc560 100644 --- a/src/dom/document-cloner.ts +++ b/src/dom/document-cloner.ts @@ -448,7 +448,7 @@ export const copyCSSStyles = (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)); } }