Skip to content

Commit

Permalink
Fix selector-pseudo-class-no-unknown false positives for :open (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow authored Dec 11, 2024
1 parent ca8d5b4 commit b2c99ce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-lobsters-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `selector-pseudo-class-no-unknown` false positives for `:open`
1 change: 1 addition & 0 deletions lib/reference/selectors.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ const pseudoClasses = uniteSets(
'modal',
'only-child',
'only-of-type',
'open',
'optional',
'out-of-range',
'past',
Expand Down
1 change: 1 addition & 0 deletions lib/reference/selectors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ export const pseudoClasses = uniteSets(
'modal',
'only-child',
'only-of-type',
'open',
'optional',
'out-of-range',
'past',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ testRule({
code: ':popover-open {}',
description: 'explicit :popover-open test',
},
{
code: ':open {}',
description: 'explicit :open test',
},
{
code: ':active-view-transition, :active-view-transition-type() {}',
},
Expand Down

0 comments on commit b2c99ce

Please sign in to comment.