Re: [csswg-drafts] [css-shadow-parts] need definition of which pseudo-classes can follow :part() that is sufficient to produce interoperability (#10787)

Agreed.

I think the definitely-disallowed ones are:
* the structural pseudo-classes, as already disallowed
* `:has()`

Slightly uncertain ones that I think should still be allowed:
* :lang() and :dir() (we already resolved to allow them)
* the `:*-within` pseudos (`:target-within`, `:focus-within`
* `:picture-in-picture`

And I think the rest are all clearly fine.

I made this list by looking over <https://drafts.csswg.org/indexes/#selectors> which gets selectors from across the spec landscape, so should be pretty complete (anything it's missing are just mis-tagged).

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


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

Received on Thursday, 5 September 2024 18:46:15 UTC