CSS: Has a Parent Selector Now
wisdomgeek.com
CSS: Has a Parent Selector Now
1–9 of 9 posts
Re: CSS: Has a Parent Selector Now
#2Sweet! I’ve been wanting this for a long time.
Re: CSS: Has a Parent Selector Now
#3anyone 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 )
Re: CSS: Has a Parent Selector Now
#4Have 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.
Re: CSS: Has a Parent Selector Now
#5What’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.
Re: CSS: Has a Parent Selector Now
#6What’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.
Re: CSS: Has a Parent Selector Now
#7What’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.
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
Re: CSS: Has a Parent Selector Now
#8Anyone have a great example of something that this enables to be achieved more simply than with a class name?
Re: CSS: Has a Parent Selector Now
#9Anyone have a great example of something that this enables to be achieved more simply than with a class name?
one line adblock filters