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

Issue with "<style> in <body>": Real word vs Spec #3137

Closed
guettli opened this issue Mar 15, 2021 · 2 comments
Closed

Issue with "<style> in <body>": Real word vs Spec #3137

guettli opened this issue Mar 15, 2021 · 2 comments

Comments

@guettli
Copy link

guettli commented Mar 15, 2021

MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style

What information was incorrect, unhelpful, or incomplete?

I see a huge difference between the specification and the real world.

According to the specs <style> should be in the <head>:

The <style> element must be included inside the <head> of the document.

But just look at amazon.com. There are 11 style tags in the body.

If you ask me: I think the spec should allow the style tag everywhere.

MDN Content page report details
@guettli guettli changed the title Issue with "<style>: The Style Information element": (short summary here please) Issue with "<style> in <body>": Real word vs Spec Mar 15, 2021
@rachelandrew
Copy link
Collaborator

Hi @guettli this isn't the place to raise an issue against the spec. MDN documents the specifications rather than informs them.

My understanding with <style> elements outside of the head is that browser do typically support them but they can have negative impacts on performance creating a FOUC (flash of unstyled content) etc. A quick search brought back this old issue here: whatwg/html#1605

So I'm not sure there is anything to change on MDN right now.

@chrisdavidmills
Copy link
Contributor

Yup, let's close this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants