Skip to content

Commit

Permalink
Add 'where' pseudo selector (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
jannispl committed Sep 30, 2021
1 parent 933a032 commit a04a40d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/__fixtures__/tests.ts
Expand Up @@ -458,6 +458,27 @@ export const tests: [
],
"pseudo selector with data",
],
[
":where(a)",
[
[
{
type: "pseudo",
name: "where",
data: [
[
{
type: "tag",
namespace: null,
name: "a",
},
],
],
},
],
],
"pseudo selector with data",
],
[
':contains("(a((foo\\\\\\))))")',
[
Expand Down
1 change: 1 addition & 0 deletions src/parse.ts
Expand Up @@ -109,6 +109,7 @@ const unpackPseudos = new Set([
"not",
"matches",
"is",
"where",
"host",
"host-context",
]);
Expand Down

0 comments on commit a04a40d

Please sign in to comment.