You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
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
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.
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>
: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
en-us/web/html/element/style
The text was updated successfully, but these errors were encountered: