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

> it seems pointless since `::backdrop` only generates boxes if the originating element is in the top layer.
> 
> Sounds like there's generally some pushback to having this apply to `::backdrop` pseudo elements, and I can see those points. I agree there's likely not much of a use case, since `::backdrop` is always in the top layer. But is there any downside to making `::backdrop` match `:top-layer`, to make it easier to explain? I.e. "anything in the top layer", rather than "anything in the top layer, except for `::backdrop` pseudo elements, which are in the top layer but still don't match `:top-layer`"?

While the Fullscreen spec. says that the `::backdrop` pseudo-element is in the same top layer as the originating element, from an author's perspective `::backdrop` is _behind_ its originating element.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7319#issuecomment-1142688642 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 22:14:08 UTC