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

> > > 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.
> > 
> > 
> > Right. But as you point out, it **is in the top layer**. Seems like it would make sense to have it match `:top-layer` then.
> 
> I guess, my question is, _why_ does the Fullscreen spec. define that `::backdrop` is in the top layer? And that the top layer can consist of _multiple_ elements.
> 
> Sebastian

This makes sense, you don't want a random element outside the top layer with z-index: 999999 to appear above a `::backdrop`.

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


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

Received on Wednesday, 1 June 2022 19:42:42 UTC