Global styles CSS-variables don't apply to the iframe in site-editor #28581
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When in the site-editor using an FSE theme, I can see that the CSS-variables get generated properly but they are applied to the main
:root
element. The problem is that they don't get applied to the root element inside theiframe
, and as a result themes appear broken/unstyled.Step-by-step reproduction instructions
Expected behaviour
CSS-variables should be applied to the
iframe
and not the root element.Actual behaviour
CSS-variables get applied to the root element and the
iframe
does not inherit them.WordPress information
Device information
The text was updated successfully, but these errors were encountered: