mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: don't copy 'all' css property (#2586)
This commit is contained in:
parent
99b687c412
commit
fa60716d07
@ -448,7 +448,7 @@ export const copyCSSStyles = <T extends HTMLElement | SVGElement>(style: CSSStyl
|
|||||||
for (let i = style.length - 1; i >= 0; i--) {
|
for (let i = style.length - 1; i >= 0; i--) {
|
||||||
const property = style.item(i);
|
const property = style.item(i);
|
||||||
// Safari shows pseudoelements if content is set
|
// Safari shows pseudoelements if content is set
|
||||||
if (property !== 'content') {
|
if (property !== 'content' && property !== 'all') {
|
||||||
target.style.setProperty(property, style.getPropertyValue(property));
|
target.style.setProperty(property, style.getPropertyValue(property));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user