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

Firefox fails to render SVG at image shape #107

Open
r3code opened this issue Sep 2, 2019 · 1 comment
Open

Firefox fails to render SVG at image shape #107

r3code opened this issue Sep 2, 2019 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@r3code
Copy link
Contributor

r3code commented Sep 2, 2019

During work at #105 I noticed that Firefox couldn't process SVG from external file but Chrome works fine.
What you see in Chrome (all OK)
vis-svg-chrome

What you see in Firefox 68 (SVG dimensions detected wrong)
vis-svg-ff

This is due to longterm Firefox SVG drawing bug.

The workaround

Edit SVG source, add to root <svg> element width and height attributes (see https://stackoverflow.com/a/28692538/469898)

@r3code
Copy link
Contributor Author

r3code commented Sep 2, 2019

Let's call Image - the Image Shape, Picture - the image drawn inside the Image Shape.
I think there should be a fallback option for such cases something like fallbackPictureSize if it possible.

@mojoaxel mojoaxel added bug Something isn't working help wanted Extra attention is needed labels Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants