Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide popovers when making an element fullscreen #204

Merged
merged 16 commits into from
May 22, 2023
Merged
14 changes: 12 additions & 2 deletions fullscreen.bs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,16 @@ stated otherwise it is unset.
<p>All <a for=/>documents</a> have an associated <dfn>list of pending fullscreen events</dfn>, which
is an <a>ordered set</a> of (<a>string</a>, <a>element</a>) <a>tuples</a>. It is initially empty.

<p>To <dfn>fullscreen an <var>element</var></dfn>, set <var>element</var>'s <a>fullscreen flag</a>
and <a for="top layer">add</a> it to its <a>node document</a>'s <a>top layer</a>.
<p>To <dfn>fullscreen an <var>element</var></dfn>:

<ol>
<li><p>Run <a>hide all popovers</a> given <var>element</var>'s <a>node document</a>.

<li><p>Set <var>element</var>'s <a>fullscreen flag</a>.

<li><p><a for="top layer">Add</a> <var>element</var> to <var>element</var>'s <a>node document</a>'s
<a>top layer</a>.
</ol>

<p>To <dfn>unfullscreen an <var>element</var></dfn>, unset <var>element</var>'s
<a>fullscreen flag</a> and <a>iframe fullscreen flag</a> (if any), and <a for=set>remove</a> it from
Expand Down Expand Up @@ -230,6 +238,8 @@ if all of the following are true, and false otherwise:
<li><p><var>element</var>'s <a>node document</a> is <a>allowed to use</a> the "<code><a
data-lt="fullscreen-feature">fullscreen</a></code>" feature.
<!-- cross-process, recursive -->

<li><p><var>element</var> is not in the {popover showing state}.
foolip marked this conversation as resolved.
Show resolved Hide resolved
</ul>

<div algorithm="requestFullscreen(options)">
Expand Down