It seems that when an svg has padding it is not represented correctly on the image. (playcode)
The issue seems to be how the svg is requested from network as data:image.
Screenshot:
Specifications:
html2canvas version tested with: 1.4.1
Browser & version: Chrome Version 116.0.5845.140 (Official Build) (arm64)
Operating system: MacOS M1 (Ventura 13.4) - Also tested on win10
Bug reports:
It seems that when an svg has padding it is not represented correctly on the image. (playcode) The issue seems to be how the svg is requested from network as data:image.
Screenshot:
Specifications: