Skip to content

Commit

Permalink
Fix dangling fullscreen flag when exiting a disconnected element
Browse files Browse the repository at this point in the history
Fixes #217
  • Loading branch information
nt1m authored and foolip committed Feb 11, 2025
1 parent 3cd33da commit 1c324ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fullscreen.bs
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,11 @@ could be an open <{dialog}> element.

<li><p>If <var>doc</var>'s <a>fullscreen element</a> is not <a>connected</a>:
<ol>
<li><p><a for=set>Append</a> ({{fullscreenchange}}, <var>doc</var>'s
<a>fullscreen element</a>) to <var>doc</var>'s
<a>list of pending fullscreen events</a>.
<li><p><a for=set>Append</a> ({{fullscreenchange}}, <var>doc</var>'s <a>fullscreen element</a>)
to <var>doc</var>'s <a>list of pending fullscreen events</a>.

<li><p><a lt="unfullscreen an element">Unfullscreen</a> <var>doc</var>'s <a>fullscreen
element</a>.
</ol>

<li><p>Return <var>promise</var>, and run the remaining steps <a>in parallel</a>.
Expand Down

0 comments on commit 1c324ee

Please sign in to comment.