Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jul 29, 2024
1 parent b7c15d7 commit 280559d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-editor/src/utils/transform-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 280559d

Please sign in to comment.