Settings

Theme

CSS: Has a Parent Selector Now

wisdomgeek.com

36 points by saranshk 3 years ago · 8 comments

Reader

pas 3 years ago

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 3 years ago

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 3 years ago

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 3 years ago

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

windows2020 3 years ago

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