Skip to content

Commit

Permalink
Added note that removes the restriction of <style> in <head> but
Browse files Browse the repository at this point in the history
pointing out that use in the body can trigger unwanted side
effects. See Issue w3c#544.
  • Loading branch information
Alex Danilo committed Mar 29, 2017
1 parent 85ab9b5 commit b0fcb8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sections/semantics-document-metadata.include
Original file line number Diff line number Diff line change
Expand Up @@ -1540,8 +1540,9 @@
by default styles apply to all media.

<p class="note">
A <{style}> element is restricted to
appearing in the <{head}> of the document.
A <{style}> element should preferably be used in the <{head}> of the document.
The use of <{style}> in the <{body}> of the document may cause restyling, trigger layout
and/or cause repainting, and hence, should be used with care.
</p>

The <dfn element-attr for="style"><code>nonce</code></dfn> attribute represents a cryptographic
Expand Down

1 comment on commit b0fcb8a

@chaals
Copy link

@chaals chaals commented on b0fcb8a Mar 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but to close the issue style should also be listed in flow content - that can be another PR.

Please sign in to comment.