I have a few SVG SMIL animation files which run well on every browser. But, when zoomed in on macOS Safari (any version), the animation breaks. It looks like the animation is bleeding through the right and bottom edges. And, this only happens when the SVG is in an <img> tag. If the SVG is used inline, there is no issue as such. When the page is zoomed in to 125% on macOS Safari (any version), you'll get, https://i.stack.imgur.com/WHhLY.gif (one of the files) To reproduce this bug, open up https://github.com/n3r4zzurr0/svg-spinners/blob/main/README.md, https://loading.io/spinner or http://samherbert.net/svg-loaders/ (as all these links contain SVGs in <img> tags) in macOS Safari (any version) with a zoom level other than 100%.
Replace https://github.com/n3r4zzurr0/svg-spinners/blob/main/README.md with https://github.com/n3r4zzurr0/svg-spinners/blob/8b9892e1b12f53d53eca951f531feaf9d5bf6374/README.md to reproduce the bug.
<rdar://problem/96210761>
This bug does not happen with pinch-zoom but it happens with manual zoom: Cmd++ or Main menu/View/zoom in. See the attached screenshots.
Created attachment 460590 [details] SVG-SMIL-pinch-zoom
Created attachment 460591 [details] SVG-SMIL-menu-zoom