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

Meta viewport parsing compatability #6746

Closed
josepharhar opened this issue Jun 8, 2021 · 2 comments
Closed

Meta viewport parsing compatability #6746

josepharhar opened this issue Jun 8, 2021 · 2 comments

Comments

@josepharhar
Copy link
Contributor

Consider the following meta viewport tag:

<meta name="viewport" content="width=device-width;">

Both chrome and safari ignore this tag due to the semicolon. However, firefox treats the semicolon the same as a separator just like comma...

Is this specified anywhere? Should we have firefox follow the chrome/safari behavior?

I found this in this chrome bug, and the semicolon behavior appears to have been added in this patch.

@domenic
Copy link
Member

domenic commented Jun 8, 2021

The meta viewport tag is currently specified in an unfortunate fashion: it doesn't follow the existing HTML specs for meta names, and it is specified in an entirely non-normative section: https://drafts.csswg.org/css-device-adapt/#viewport-meta

See #3494 and w3c/csswg-drafts#331 . It's a mess that needs someone to drive the spec/testing work, on both CSS and HTML sides.

@josepharhar
Copy link
Contributor Author

Thanks for the link to #3494! I think this can probably be merged into #3494.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants