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

Save SVG meta data for consistent rendering #473

Open
TeemuSuoranta opened this issue Feb 4, 2021 · 0 comments
Open

Save SVG meta data for consistent rendering #473

TeemuSuoranta opened this issue Feb 4, 2021 · 0 comments

Comments

@TeemuSuoranta
Copy link
Contributor

The SVG support is great but it could be a little more robust. Current implementation will not save any meta data for SVGs so when they are used as images they have no width/height attributes that may lead to inconsistent renedering on older browsers.

Some SVG plugins like safe-svg do save the meta data but implementation is probably a bit hacky https://github.com/darylldoyle/safe-svg/blob/master/safe-svg.php#L398

Not super critical but if there are more people with this issue, they might consider using external SVG plugin.

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

1 participant