seed-rs / seed-rs.org

Seed's official website
https://seed-rs.org/
Other
14 stars 40 forks source link

<svg> attribute `viewBox` is lowercased to `viewbox` #109

Open rutrum opened 3 years ago

rutrum commented 3 years ago

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.