[wp-trac] [WordPress Trac] #61704: global-styles-inline-css rule introduces breaking changes " :root :where(body)"
WordPress Trac
noreply at wordpress.org
Tue Aug 6 08:24: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 |
-------------------------------------------------+-------------------------
Changes (by talldanwp):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"58856" 58856]:
{{{
#!CommitTicketReference repository="" revision="58856"
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.
Props talldanwp, andrewserong, aaronrobertshaw, mukesh27, hellofromtonya.
Fixes #61704.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61704#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list