CSS: Has a Parent Selector Now
wisdomgeek.comanyone 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 )
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.
caniuse 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.
they 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
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.
Sweet! I’ve been wanting this for a long time.
Anyone have a great example of something that this enables to be achieved more simply than with a class name?
one line adblock filters