Skip to content
Discussion options

You must be logged in to vote

After further investigation I don't believe it is currently possible to polly-fill :dir() psuedo selector behaviour (and this problem isn't limited to stylex). This limitation shows up in how CSS processing tools handle this, for example:

So this has nothing to do with StyleX. As @chbybnwr mentioned if a StyleX can use stylex.when.* if they desire to conditionally apply styles based on an ancestor element.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mjames-c
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