Block editor not parsing CSS containing @layer added via add_editor_style #51601
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Description
I have the following test stylesheet:
It is added to the block editor via:
This causes the corresponding
<style>
tag generated in the block editor to be empty, while working correctly on the frontend.If I remove the
@layer
declaration, the stylesheet's content gets inlined correctly.What could be causing this?
Step-by-step reproduction instructions
<style>
tag@layer
declarationScreenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: