diff --git a/src/dom-to-image-more.js b/src/dom-to-image-more.js index 34b9d609..b98c8028 100644 --- a/src/dom-to-image-more.js +++ b/src/dom-to-image-more.js @@ -1258,6 +1258,10 @@ ? parentComputedStyles.getPropertyValue(name) : undefined; + // Ignore setting style property on clone node, if already it has a style (through adjustCloneNode) + const targetValue = targetStyle.getPropertyValue(name); + if(targetValue) return; + // If the style does not match the default, or it does not match the parent's, set it. We don't know which // styles are inherited from the parent and which aren't, so we have to always check both. if (