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

Removing viewBox breaks scaling <img> in IE9+ #139

Closed
samuelvogel opened this issue Sep 23, 2013 · 0 comments
Closed

Removing viewBox breaks scaling <img> in IE9+ #139

samuelvogel opened this issue Sep 23, 2013 · 0 comments

Comments

@samuelvogel
Copy link

When displaying a SVG inside an <img> tag inside IE9 & 10 and resizing it using CSS width & height, it is clipped instead of correctly resized. The removeViewBox plugin causes this issue.

After optimization (broken):

<svg xmlns="http://www.w3.org/2000/svg" width="264" height="56">
...

Working in IE9/10 after restoring the viewBox:

<svg xmlns="http://www.w3.org/2000/svg" width="264" height="56" viewBox="0 0 264 56">
...

#19 and #124 seem related.

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

No branches or pull requests

1 participant