Re: [csswg-drafts] [selectors] Add `:top-layer` pseudo class (#7319)

> is there any downside to making ::backdrop match :top-layer, to make it easier to explain?

`::backdrop` may match `::backdrop:top-layer`, but not `:top-layer` alone. Just like `:hover` can only select elements, even if `::before:hover` is valid according to the spec. You would need something like `**:top-layer` from #4565 in order to simultaneously select elements and pseudo-elements.

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


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

Received on Tuesday, 31 May 2022 21:56:09 UTC