diff --git a/fullscreen.bs b/fullscreen.bs index 4e7428a..3da7eb5 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -92,6 +92,8 @@ its node document's top layer. these steps:
Let document be removedNode's node document. +
Let nodes be removedNode's shadow-including inclusive descendants that have their fullscreen flag set, in shadow-including tree order. @@ -100,11 +102,18 @@ these steps:
For each node in nodes:
If node is its node document's fullscreen element, - exit fullscreen that document. +
If node is document's fullscreen element, + exit fullscreen document. + +
Otherwise, unfullscreen node. + +
If document's top layer contains node, + remove node from document's top layer. -
Otherwise, unfullscreen node within its - node document. +
Other specifications can add and remove elements from top layer, so + node might not be document's fullscreen element. For example, + node could be an open <{dialog}> element.
If doc's fullscreen element is not connected: +
Append (fullscreenchange
, doc's
+ fullscreen element) to doc's
+ list of pending fullscreen events.
+
Return promise, and run the remaining steps in parallel.
If resize is true, resize doc's viewport to its "normal" dimensions. @@ -676,6 +692,7 @@ delivered with the document through which it is nested. Andy Earnshaw, Chris Pearce, Darin Fisher, +Dave Tapuska, fantasai, Giuseppe Pascale, Glenn Maynard,