Re: [csswg-drafts] [selectors] Add :modal-dialog pseudo-class (#6965)

> By arranging it this way, aren't there going to be odd situations? What happens if a fullscreen element or modal dialog puts something into the "developer top layer". It'll be below the fullscreen/dialog and never visible. For example, what if you want a tooltip on top of a modal dialog? That would be impossible, or would require special case logic to do something entirely different if your dialog was modal.
> 
> On the other hand, if the **one** top layer was managed by the UA, it could allow nested top layer elements like this, with more specific rules. For example, it's ok to show a tooltip on top of a popup on top of a fullscreen element, but if the user hits ESC, **the entire stack of three elements** gets removed from the top layer.

Browser-provided features like fullscreen, modal or popup should use the UA top layer. A potential developer top layer would always be below it. That suffices right?

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


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

Received on Tuesday, 25 January 2022 18:20:01 UTC