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

image-width/height support for SVG with only viewBox #15

Open
rvock opened this issue Jul 6, 2018 · 0 comments
Open

image-width/height support for SVG with only viewBox #15

rvock opened this issue Jul 6, 2018 · 0 comments

Comments

@rvock
Copy link

rvock commented Jul 6, 2018

Currentlyimage-width or image-height does not work on SVG images, which are missing width and height attributes and only have a viewBox.

There is an upstream fix for this issue: image-size/image-size#38

You just need to adjust the dependency for it. ^0.3.5 does not get 0.6.3.

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