Re: [whatwg/fullscreen] Investigate whether nested fullscreen element is necessary (#119)

Hmmm, video inside presentation does sound like a reasonable use case I didn't take into consider.

> If we learn that 0% of page views have nested fullscreen, what simplifications would we make?

I think we can remove the concept "simple fullscreen document", and all callsites of it.

Since a document would have at most one fullscreen element, we can probably stick fullscreen element at a fixed position of top layer (e.g. the last element in top layer, which may affect fullscreen from modal dialog, but whether it's useful is questionable as well), and we can use a single slot in document to track fullscreen element rather than checking the fullscreen flag everywhere.

There would be many code-wise simplification as well, I believe.

-- 
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/issues/119#issuecomment-361417836

Received on Monday, 29 January 2018 23:05:28 UTC