Re: [csswg-drafts] Parent/Ancestor State Selectors for CSS (Upward and Cross-Branch Traversal) (#12878)

I think your selector is already working now
`.list-dropdown:has(.list-dropdown-inactive-checkbox:checked) select option[data-active="False"]`

Even if they are in two completely unrelated places in the document, you can use:
`:root:has(.list-dropdown-inactive-checkbox:checked) select option[data-active="False"]`


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


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

Received on Thursday, 9 October 2025 04:40:05 UTC