https://drafts.csswg.org/selectors/#has-pseudo
Created attachment 433022 [details] wip
Created attachment 433031 [details] wip
<rdar://problem/80511971>
This was enabled in http://trac.webkit.org/changeset/286495/webkit
I am excited to see that :has() is shipping in STP v137! Thanks to all who have contributed to this. I did find something that seems like a potential bug in my testing, however. The general idea is that... #form:has(input:checked) .row { background: rebeccapurple; } ...is not toggling that background color if the user checks and unchecks an input, but it really seems that it should. I created a test case with more details here: https://codepen.io/kbav/pen/YzrxwBa?editors=1100
Can you file a new bug for this? (it is a style invalidation issue with :checked)