Re: [csswg-drafts] Combinator to get from `interestfor` invoker to its target (#12436)

> This feels like something that we should probably make more generalised, a way to get between idref targets. This would be useful for commandfor not just interestfor.

Agreed, see #10970 for an `/idref()/` combinator and #12446 for a generalization.

> I can think of use cases to get from a target to it's invoker but not off the top of my head the opposite. Like if my commandfor controls a video element I could use the media state pseudo-classes (when non-webkit browsers actually ship them) to style my invoker.

Note that with a combinator to go from target to invoker, we get that for free, via `:has()`.

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


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

Received on Tuesday, 16 September 2025 11:21:04 UTC