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

https://drafts.csswg.org/selectors/#modal-state says:

> For example, the [dialog](https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element) element is [:modal](https://drafts.csswg.org/selectors/#selectordef-modal) when opened with the [showModal()](https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-showmodal) API. Similarly, a [:fullscreen](https://drafts.csswg.org/selectors/#selectordef-fullscreen) element is also :modal when opened with the [requestFullscreen()](https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen) API, since this prevents interaction with the rest of the page.

Which seems to hint that `:modal` should always match when `:fullscreen` matches. But as per above that's not necessarily true.

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


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

Received on Wednesday, 25 May 2022 10:52:02 UTC