Skip to content

Commit

Permalink
Fix selector-pseudo-class-no-unknown false positive for `:popover-o…
Browse files Browse the repository at this point in the history
…pen` (#7425)

Closes #7424.
  • Loading branch information
mattxwang committed Dec 22, 2023
1 parent 8ec6748 commit 760a6f1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-apricots-whisper.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `selector-pseudo-class-no-unknown` false positive for `:popover-open`
5 changes: 3 additions & 2 deletions lib/reference/selectors.cjs
Expand Up @@ -275,8 +275,8 @@ const pseudoClasses = uniteSets(
'first-child',
'first-of-type',
'focus',
'focus-within',
'focus-visible',
'focus-within',
'fullscreen',
'fullscreen-ancestor',
'future',
Expand All @@ -295,10 +295,11 @@ const pseudoClasses = uniteSets(
'optional',
'out-of-range',
'past',
'paused',
'placeholder-shown',
'playing',
'picture-in-picture',
'paused',
'popover-open',
'read-only',
'read-write',
'required',
Expand Down
5 changes: 3 additions & 2 deletions lib/reference/selectors.mjs
Expand Up @@ -272,8 +272,8 @@ export const pseudoClasses = uniteSets(
'first-child',
'first-of-type',
'focus',
'focus-within',
'focus-visible',
'focus-within',
'fullscreen',
'fullscreen-ancestor',
'future',
Expand All @@ -292,10 +292,11 @@ export const pseudoClasses = uniteSets(
'optional',
'out-of-range',
'past',
'paused',
'placeholder-shown',
'playing',
'picture-in-picture',
'paused',
'popover-open',
'read-only',
'read-write',
'required',
Expand Down
Expand Up @@ -118,6 +118,10 @@ testRule({
description:
'takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list',
},
{
code: ':popover-open {}',
description: 'explicit :popover-open test; see #7424',
},
],

reject: [
Expand Down

0 comments on commit 760a6f1

Please sign in to comment.