from Hacker News

CSS: Has a Parent Selector Now

by saranshk on 11/12/22, 11:04 PM with 8 comments

  • by pas on 11/13/22, 12:25 AM

    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 )
  • by 1123581321 on 11/13/22, 12:32 AM

    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.
  • by CM30 on 11/13/22, 12:25 AM

    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.
  • by johnthuss on 11/13/22, 12:12 AM

    Sweet! I’ve been wanting this for a long time.
  • by windows2020 on 11/13/22, 2:08 AM

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