diff --git a/packages/block-editor/src/utils/transform-styles/index.js b/packages/block-editor/src/utils/transform-styles/index.js index 223b3b089d17ff..fec11d31282bc2 100644 --- a/packages/block-editor/src/utils/transform-styles/index.js +++ b/packages/block-editor/src/utils/transform-styles/index.js @@ -44,9 +44,7 @@ function transformStyle( // `html`, `body` and `:root` need some special handling since they // generally cannot be prefixed with a classname and produce a valid - // selector. - // Also include some special rules for various forms of :root and body - // that crop up. + // selector. Instead we replace the whole root part of the selector. if ( ROOT_SELECTOR_REGEX.test( selector ) ) { return selector.replace( ROOT_SELECTOR_REGEX, @@ -54,8 +52,6 @@ function transformStyle( ); } - // console.log( out, rootSelector, prefixedSelector ); - return prefixedSelector; }, } ),