1 comment

[ 3.8 ms ] story [ 11.7 ms ] thread
`:has` allows matching a parent on the basis of matching selectors in the children - e. g. the coveted `section:has(input:checked)` will match section elements containing a checked input.