Re: [whatwg/fullscreen] Reinstate the hierarchy restrictions (#91)

>  I guess we should make HTML avoid invoking top-layer-add when the element is already a fullscreen element by rejecting it with a exception

Yep, we could add another "InvalidStateError" case to https://html.spec.whatwg.org/#dom-dialog-showmodal

> If we add that assertion, we would also need to think about what if a modal dialog requests fullscreen. Maybe we should reject as well.

Actually, if we add a check for `dialog` in `requestFullscreen()`, then no check should be needed in `showModal()`. With the current state of things, no `dialog` elements in top layer would be fullscreen, and all non-`dialog` elements would be.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/pull/91#issuecomment-303327739

Received on Tuesday, 23 May 2017 08:27:32 UTC