Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor: Fix block custom CSS pseudo element selectors in global styles.
Fixes a regression introduced in [58241] where selectors with pseudo elements are wrapped within `:where()` causing malformed CSS and the CSS rule(s) not being applied. When processing custom CSS for blocks, this changeset: * Strips the pseudo-elements from the original nested selector, performs the required wrapping in `:root :where`, then re-appends the pseudo-element selector with its leading combinators if present. * Removes empty CSS rules. It includes the PHP changes. Reference: * PHP changes from [WordPress/gutenberg#63980 Gutenberg PR 63980]. Follow-up to [58241], [56812], [55216]. Reviewed by andrewserong. Merges [58896] to the 6.6 branch. Props aaronrobertshaw, wongjn, harlet7, dballari, ramonopoly, andrewserong, aristath, hellofromTonya. Fixes #61769. Built from https://develop.svn.wordpress.org/branches/6.6@58987 git-svn-id: http://core.svn.wordpress.org/branches/6.6@58383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information