Skip to content

Commit

Permalink
Chain new and old selectors to catch margin rule
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed May 30, 2024
1 parent ccc57e1 commit dd9e141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/utils/transform-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function transformStyle(
if ( ! wrapperSelector && ! baseURL ) {
return css;
}
const postcssFriendlyCSS = css.replace( /:root :where\(body\)/g, 'body' );
const postcssFriendlyCSS = css
.replace( /:root :where\(body\)/g, 'body' )
.replace( /:where\(body\)/g, 'body' );
try {
return postcss(
[
Expand Down

0 comments on commit dd9e141

Please sign in to comment.