Commit a39a35c
committed
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 WordPress/gutenberg#63726.
Props talldanwp, andrewserong, aaronrobertshaw, mukesh27, hellofromtonya.
Fixes #61704.
git-svn-id: https://develop.svn.wordpress.org/trunk@58856 602fd350-edb4-49c9-b593-d223f7449a821 parent 8aca1cf commit a39a35c
2 files changed
Lines changed: 28 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2738 | 2738 | | |
2739 | 2739 | | |
2740 | 2740 | | |
| 2741 | + | |
| 2742 | + | |
2741 | 2743 | | |
2742 | 2744 | | |
2743 | 2745 | | |
| |||
2892 | 2894 | | |
2893 | 2895 | | |
2894 | 2896 | | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
2895 | 2900 | | |
2896 | 2901 | | |
2897 | 2902 | | |
2898 | 2903 | | |
2899 | 2904 | | |
2900 | 2905 | | |
2901 | 2906 | | |
2902 | | - | |
| 2907 | + | |
| 2908 | + | |
2903 | 2909 | | |
2904 | 2910 | | |
2905 | 2911 | | |
2906 | | - | |
| 2912 | + | |
| 2913 | + | |
2907 | 2914 | | |
2908 | 2915 | | |
2909 | 2916 | | |
| |||
0 commit comments