3 ms·
CSS: Has a Parent Selector Now
- johnthuss 4y agoSweet! I’ve been wanting this for a long time.
- pas 4y agoanyone 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 https://news.ycombinator.com/item?id=33287471 (beware, it's looong, and mentions :has https://web.dev/state-of-css-2022/#has https://web.dev/state-of-css-2022/#has )
- CM30 4y agoHave 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.
- 1123581321 4y agoWhat’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.
- tasty_freeze 4y agocaniuse says that Firefox supports it but not by default -- it can be enabled via a flag. I guess they don't have confidence yet to turn it on by default.
- saranshk 4y agothey have an experimental implementation but it is not stable according to them. You can read more about it here: https://bugzilla.mozilla.org/show_bug.cgi?id=418039 https://bugzilla.mozilla.org/show_bug.cgi?id=418039
- windows2020 4y agoAnyone have a great example of something that this enables to be achieved more simply than with a class name?
- rasz 4y agoone line adblock filters