[wp-trac] [WordPress Trac] #61769: Global Styles: Prevent empty CSS rules and malformed selectors for custom css for blocks
WordPress Trac
noreply at wordpress.org
Fri Jul 26 06:08:59 UTC 2024
#61769: Global Styles: Prevent empty CSS rules and malformed selectors for custom
css for blocks
-----------------------------+-----------------------------
Reporter: aaronrobertshaw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6.2
Component: Editor | Version: trunk
Severity: normal | Keywords: gutenberg-merge
Focuses: |
-----------------------------+-----------------------------
This ticket tracks the backporting of PHP files for the following
Gutenberg changes:
- https://github.com/WordPress/gutenberg/pull/63980
These changes fix two issues with the generation of custom css for blocks
with Global Styles.
1. Empty CSS rules e.g. `:root :where(.wp-block-heading){}`
2. Malformed pseudo element selectors `:root :where(.wp-block-
heading::before)`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61769>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list