Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari SVG bounds bug #1658

Open
samreid opened this issue Oct 3, 2024 · 2 comments
Open

Safari SVG bounds bug #1658

samreid opened this issue Oct 3, 2024 · 2 comments
Assignees

Comments

@samreid
Copy link
Member

samreid commented Oct 3, 2024

Discovered in phetsims/forces-and-motion-basics#310 (comment), Safari (but not chrome) shrinks the svg image within its bounding box incorrectly:

image

We confirmed the artboard bounds, the svg width/height and viewbox, and could not get Safari to render it to the correct scale.

@samreid
Copy link
Member Author

samreid commented Oct 3, 2024

Please note the SVG has been converted to PNG in forces and motion basics, so you will need to recover the SVG to reproduce this problem.

@amanda-phet
Copy link

We have been using SVGs in many places, including this sim, and haven't had this issue (that I'm aware of). Is there something special about the rope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants