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

As mentioned in #6965, adding such selector would prevent allowing authors to place elements into the top layer via some CSS property. Or would this only match elements placed in the top layer by the UA?

> `::backdrop` pseudo elements

`:top-layer` is like `*:top-layer` where `*` matches elements, not pseudo-elements like `::backdrop`. Do you mean `::backdrop:top-layer` should match? But that's strange, because pseudo-elements can only be followed by user action pseudo-classes (https://drafts.csswg.org/selectors/#pseudo-element-states) and it seems pointless since `::backdrop` only generates boxes if the originating element is in the top layer.

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


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

Received on Friday, 27 May 2022 22:05:05 UTC