Opened 4 months ago
Closed 4 months ago
#61840 closed defect (bug) (duplicate)
WP 6.6.1 fix still effects body tag
Reported by: | nickfmc | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 6.6.1 |
Component: | General | Keywords: | |
Focuses: | css | Cc: |
Description
The specificity issue here https://core.trac.wordpress.org/ticket/61661 that was fixed in WP 6.6.1 fixed the underlined links, however there is still an issue with Body padding and the specificity of the below code. If you have a fixed website navigation you might have body {padding-top:100px;} this is going to be overwritten by the WP code.
:root :where(body) {
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hello @nickfmc,
Welcome to WordPress Core Trac!
As you noted, #61661 resolved a different specificity issue.
The issue you reported here was already reported in Gutenberg issue 63712 and fixed in Gutenberg. The bug fix changes are being tracked in #61704.
What is the fix? It reverts the change that wrapped
body
in:root :where(body)
, as that change inadvertently increased CSS specificity. Details are in #61704.I invite you to join the discussion there as well as test it if you're available.
When will the fix ship? It'll ship in 6.6.2. It already shipped in the Gutenberg plugin.
Thanks again for reporting this issue.