Re: [csswg-drafts] Questions: about relative selectors.. (#10856)

`.parent:has(> .child)` simply makes more sense than `.parent:is(> .child)` (assuming the latter is valid). Besides, `.parent:has(.child)` `.parent:is(.child)` would select different elements.

`:has()` qualifies the selector subject with the relations it *has* with other elements. `:is()`/`:where()`/`:not()` qualify the selector subject with subselectors defining what it *is*.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10856#issuecomment-2339797789 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 10 September 2024 06:41:37 UTC