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

> If we have an `:open` pseudo-class, it should mean that something is 'open', (and I agree that it should apply to anything that can be open, like `<details>`). This would have no relation to if it's in the top layer or not (I accept that some things may only be open in the top layer, or may get put in the top layer by virtue of being open, but they are generally orthogonal concepts).
> 
> If you want a pseudo-class that means 'in the top layer', I suggest `:overlay`.

Right, I think we agree. The idea would be that a pop-up is `:open` when it’s showing (according to the definition in the explainer). That’s coincidentally when it’s in the top layer, but `:open` means open. So likely modal dialogs, details/summary, maybe a pop-up select? We’d need to figure out that list. 

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


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

Received on Saturday, 23 July 2022 02:33:15 UTC