4 ms·
Looks nice but I don't like the lack of pseudo selectors: From the footnotes: > The one area where this is useful is combining descendant combinators with pse
by bostonvaulter2 10y ago
Looks nice but I don't like the lack of pseudo selectors:
From the footnotes:
> The one area where this is useful is combining descendant combinators with pseudo classes, the most common use case being where hovering a parent triggers a style change in a descendant node. However, this behavior be implemented in JavaScript with event listeners and explicit state changes if needed.
- fuzionmonkey 10y agoPlain pseudo classes are supported (e.g. :hover), but since descendant/child combinators aren't supported, a parent :hover can't change a child style. But any element can still have :hover styles.
- err4nt 10y agoThat seems like it would be a big roadblock to doing much useful with it. Is it impossible, not yet supported, or supported but not easy to do?
- rtsao 10y agoSomeone submitted a proposal on how to support descendent/child combinators. It's certainly possible, but I wrote a response on why it would would potentially involve tradeoffs: https://github.com/rtsao/styletron/issues/27#issuecomment-265678839 https://github.com/rtsao/styletron/issues/27#issuecomment-26...