Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

I have a question about style in body in HTML 5.2 #1129

Closed
mulder21c opened this issue Dec 25, 2017 · 4 comments
Closed

I have a question about style in body in HTML 5.2 #1129

mulder21c opened this issue Dec 25, 2017 · 4 comments

Comments

@mulder21c
Copy link

Hi, I have a question about the style element, so I post this.

I saw the specification written "In the body, where flow content is expected.", but I do not know exactly what it means.

I want to know if "In the body" means "as children of body" or "wherever flow content is expected".

Until now, it seems that "wherever flow content is expected" is described as just "where flow content is expected" in the specification, and I wonder if there is a specific reason for specifying "In the body".

And, I tested the validator and it does not seem to reflect this specification yet, Is it right?

style element as children of body

style element as descendant of body

@prlbr
Copy link
Contributor

prlbr commented Dec 28, 2017

And, I tested the validator and it does not seem to reflect this specification yet, Is it right?

Yes, and while you can raise an issue at the validator’s github page, it probably won’t be fixed until WHATWG’s version of the HTML spec allows <style> in body, too.

@chaals
Copy link
Collaborator

chaals commented Dec 28, 2017

Ping @sideshowbarker

@sideshowbarker
Copy link
Contributor

There’s already an open validator issue for this at validator/validator#489 which @stevefaulkner raised. Implementing support for this in the validator involves adding a new conditional switch. Subscribe to that issue if you want to follow the status — and as far as the validator part of this issue here, please take any further discussion of it over to that validator issue.

@chaals
Copy link
Collaborator

chaals commented Dec 29, 2017

@sideshowbarker thanks. Closing the issue here.

@chaals chaals closed this as completed Dec 29, 2017
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

4 participants