Non-iframed Editor: Compound selectors within :where
are not prefixed correctly
#63829
Closed
2 tasks done
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Package] Block editor
/packages/block-editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When the editor is not iframed, styles have their selectors prefixed with
.editor-styles-wrapper
. An issue arises when the style's selector being processed contains a compound selector within a:where()
css function.The result is incorrect as the selectors within the
:where()
, other than the first, also get the.editor-styles-wrapper
prefixed. This means part of the final selector doubles up on the.editor-styles-wrapper
class causing those styles to not be applied as intended.Step-by-step reproduction instructions
.editor-styles-wrapper :where(.wp-element-button, .editor-styles-wrapper .wp-block-button__link)
.editor-styles-wrapper
within thatScreenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: