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
lukewarlow authored Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ca8d5b4 commit b2c99ce
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
@@ -338,6 +338,7 @@ const pseudoClasses = uniteSets(
'modal',
'only-child',
'only-of-type',
'open',
'optional',
'out-of-range',
'past',
1 change: 1 addition & 0 deletions lib/reference/selectors.mjs
Original file line number Diff line number Diff line change
@@ -335,6 +335,7 @@ export const pseudoClasses = uniteSets(
'modal',
'only-child',
'only-of-type',
'open',
'optional',
'out-of-range',
'past',
Original file line number Diff line number Diff line change
@@ -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() {}',
},

0 comments on commit b2c99ce

Please sign in to comment.