Skip to content

can i configure the *: child selector to use :where() instead of :is()? #17300

Answered by wongjn
stefanprobst asked this question in Help
Discussion options

You must be logged in to vote

Nope! It's hardcoded:

staticVariant('*', [':is(& > *)'], { compounds: Compounds.Never })

And you can't do

@custom-variant * (:where(& > *));

to override it because the * won't pass variant name validation:

export const IS_VALID_VARIANT_NAME = /^@?[a-zA-Z0-9_-]*$/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stefanprobst
Comment options

Answer selected by stefanprobst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants