[wp-trac] [WordPress Trac] #61731: Body element specificity still bumped
WordPress Trac
noreply at wordpress.org
Tue Jul 23 17:06:16 UTC 2024
#61731: Body element specificity still bumped
--------------------------+-----------------------------
Reporter: cabrailsford | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.6.1
Severity: normal | Keywords:
Focuses: css |
--------------------------+-----------------------------
After upgrading to 6.6.1 today, I noticed that the body element is still
being wrapped as :root :where(body) for output. Is the body element not
considered a top-level element-only selector?
For my instance, I have left/right padding in my theme.json to output in
the editor, but am overriding that on my frontend with just the body
selector to remove the padding. However, 6.6's specificity supersedes
that, and so now I need to increase specificity to compensate.
If there's a reason the body element was left out of the change, I
understand, but I wanted to mention it in case it was missed in the
update.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61731>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list