Skip to content

Commit 7ec7281

Browse files
committed
fix(stylelint-config): let a root place its own pseudo-elements in strict
1 parent 1f9d743 commit 7ec7281

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/stylelint-config/src/subconfigs

‎packages/stylelint-config/src/subconfigs/strict.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ export default {
9797
'overflow-block'
9898
],
9999
// A block does not place itself: where it stands is its consumer's. Its margin is left out:
100-
// a root resets the one its element has with `0`, which a list of properties cannot tell
101-
'/^\\.root(?![\\w-])[^\\s>+~]*$/': [
100+
// a root resets the one its element has with `0`, which a list of properties cannot tell.
101+
// Its pseudo-elements are its own parts, placed inside it
102+
'/^\\.root(?![\\w-])(?!.*::)[^\\s>+~]*$/': [
102103
'inset',
103104
'/^inset-/',
104105
'top',

0 commit comments

Comments
 (0)