snapdom icon indicating copy to clipboard operation
snapdom copied to clipboard

The result size is not the option size in safari

Open reyhappen opened this issue 5 months ago • 1 comments

Describe it simply:

Image Original size is 375*668, but the cloned svg is 377*670. 2px bigger in width & height.

Quick demo to reproduce

Image The reason is the basePad for safari. So can it be removed to ensure the option's result is consistent with the configuration?

Anything else we should know?

ios 15.1-18.7.2/snapdom v2.0.1

reyhappen avatar Nov 27 '25 12:11 reyhappen

That pad could be remove if there is no transforms props affecting the root element. I will work on that

tinchox5 avatar Nov 27 '25 20:11 tinchox5