[wp-trac] [WordPress Trac] #61704: global-styles-inline-css rule introduces breaking changes " :root :where(body)"
WordPress Trac
noreply at wordpress.org
Fri Aug 9 15:38:29 UTC 2024
#61704: global-styles-inline-css rule introduces breaking changes " :root
:where(body)"
-------------------------------------------------+-------------------------
Reporter: talldanwp | Owner:
| hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6.2
Component: Editor | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info has- | Focuses:
unit-tests commit fixed-major dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"58874" 58874]:
{{{
#!CommitTicketReference repository="" revision="58874"
Theme JSON: Ensure root selector (body) is not wrapped in :root :where().
Pre-WordPress 6.6, the `body` selector was used for styles associated with
the body.
In 6.6, this was mistakenly changed to `:root :where(body)`, an increase
in specificity, causing some issues for themes.
This change reverts the specificity increase, styles again use the `body`
selector.
Syncs PHP changes from https://github.com/WordPress/gutenberg/pull/63726.
Reviewed by hellofromTonya.
Merges [58856] and [58861] to the 6.6 branch.
Props talldanwp, andrewserong, aaronrobertshaw, mukesh27, hellofromTonya.
Fixes #61704.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61704#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list