Skip to content

Commit

Permalink
fix: don't copy 'all' css property (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh authored Jul 14, 2021
1 parent 99b687c commit fa60716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/document-cloner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit fa60716

Please sign in to comment.