Re: [csswg-drafts] [selectors] `/idref()/` combinator to follow element references for arbitrary IDREF attributes (#10970)

> A pseudo element would be less useful, because you wouldn’t be able to select descendants. This, something like this is currently illegal:
> 
> ```
> label::ref(for) span {}
> ```

Pseudo-elements with [internal structure](https://www.w3.org/TR/selectors-4/#pseudo-element-structure) are allowed to have child- and descendant combinators after them.
(The places I know this is used in are [view-transitions-1](https://www.w3.org/TR/css-view-transitions-1/) and [css-forms-1](https://drafts.csswg.org/css-forms-1/))

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


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

Received on Friday, 16 May 2025 16:28:42 UTC