Skip to content

Nested pseudo classes with overlapping conditions behavior: Is this expected? #613

Answered by necolas
javascripter asked this question in Q&A
Discussion options

You must be logged in to vote

The behavior isn't currently well defined. Probably we shouldn't allow nesting of similar pseudos, MQs, etc. So no active in hover, no @media in @media, etc.

You probably don't need to write your own library because the dev time StyleX should do what you're trying to accomplish but faster. Currently the style sheet generation probably needs reworking to something more like what React Native for Web does

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@javascripter
Comment options

@necolas
Comment options

necolas Jun 24, 2024
Collaborator

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