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

<svg> attribute viewBox is lowercased to viewbox #109

Open
rutrum opened this issue Apr 9, 2021 · 0 comments
Open

<svg> attribute viewBox is lowercased to viewbox #109

rutrum opened this issue Apr 9, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@rutrum
Copy link

rutrum commented Apr 9, 2021

The result of this error can be seen in this image.
seed-rs org

This happens on chromium-based browsers, since it will not interpret viewbox as viewBox (like in Firefox). This case-sensitive behavior is unique to the <svg> tag, and is necessary for proper rendering.

After checking the rust code for the site (and seed itself) I can conclude that the issue doesn't lie in the rust code or the svg files for the seed logo. I suspect it is the result of a postprocessing step minifying the code. It could be similar to this problem with Parcel where it would lowercase the viewBox attribute. I'm unsure at the moment what JS dependency of the site could be causing this behavior.

@MartinKavik MartinKavik added the help wanted Extra attention is needed label Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants