Settings

Theme

CSS: Has a Parent Selector Now

wisdomgeek.com

36 points by saranshk · 8 comments

Reader

5 threads
pas

anyone interested in what "CSS is up to" these days should look at the "State of CSS 2022" post/comments: https://news.ycombinator.com/item?id=33287471 (beware, it's looong, and mentions :has https://web.dev/state-of-css-2022/#has )

1123581321

What’s holding up the Firefox implementation? Parent select is one feature that xpath would’ve provided earlier than the adopted selector spec. Glad to see it coming over.

CM30

Have to say, I'm very excited to see all the new additions CSS is getting lately. Things like this and the has: selector are going to make web development way better than before.

johnthuss

Sweet! I’ve been wanting this for a long time.

windows2020

Anyone have a great example of something that this enables to be achieved more simply than with a class name?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection