Re: [csswg-drafts] [css-view-transitions-1] Can we make the `::view-transition-old` and `::view-transition-new` pseudos “:has-allowed pseudo-element”s? (#12630)

I'm not sure if we have any ":has-allowed pseudo-elements" yet.

But if we're going to make some, I'm a little worried about issues with combinators.  In particular, I think the way things are currently specified:
* `E:has(:allowed-pseudo)` matches any element `E` that has a *descendant* with an `:allowed-pseudo` pseudo-element
* `E:has(> :allowed-pseudo)` matches any element `E` that has a *child* with an `:allowed-pseudo` pseudo-element
* there is no way to use `:has()` to match an element`E` that *itself* has an `:allowed-pseudo` pseudo-element

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


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

Received on Thursday, 29 January 2026 19:41:14 UTC