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

Attribute names are lowercase #1019

Open
matej-marcisovsky opened this issue Feb 11, 2021 · 1 comment
Open

Attribute names are lowercase #1019

matej-marcisovsky opened this issue Feb 11, 2021 · 1 comment

Comments

@matej-marcisovsky
Copy link

Hi,

I used a preact component in amp-script tag and I noticed that my inline SVG has viewBox attribute all lowercase after hydrating. It is allright in non-AMP page with the same component and preact.

<svg version="1.1" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">

<svg version="1.1" viewbox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
@matej-marcisovsky
Copy link
Author

matej-marcisovsky commented Feb 11, 2021

There are probably more case sensitive attributes (preserveAspectRatio).
https://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute

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