Re: [csswg-drafts] Add ::top-layer pseudo element (#10963)

Having it be a pseudo-element with children seems a little more complex than needed, I think? I think we can get the same functionality with a pseudo-class that matches elements in the top-layer list. We can make it functional as well, taking an an+b argument selecting based on top-layer index.

That is, `dialog:top-layer` would match when the dialog was in the top layer; `dialog:top-layer(last 1)` would match the last one in the list (which is topmost).

Am I missing something that makes this not work?

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


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

Received on Friday, 27 September 2024 16:59:22 UTC