css @container queries break block editor styles
-
Hi there,
It seems that having any selector inside a css
@containerquery breaks the inlining of the styles applied to the block editor (.editor-styles-wrapper) via theadd_editor_style( 'style-editor.css' );file.The CSS from
style-editor.cssdoes simply not get applied at all. Removing all@containerqueries fixes that issue (but obviously leaves me without that code).This is the minimum test case where the issue appears
@container { .selector {} }Note: Without the
.selectorthe query gets ignored and the styles are getting applied.Is there any known way around this issue besides removing all
@containerqueries?I have a file which gets auto-generated alongside my
style.cssand having to revert my code to work without the@containerqueries would be a bit of a blow.Many thanks,
Albert
The topic ‘css @container queries break block editor styles’ is closed to new replies.