Skip to content

Commit afd56a3

Browse files
josepharharannevkfoolip
authored
Hide popovers when making an element fullscreen
This is part of the new pop-up attribute: whatwg/html#8221. Co-authored-by: Anne van Kesteren <[email protected]> Co-authored-by: Philip Jägenstedt <[email protected]>
1 parent b3bab96 commit afd56a3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

fullscreen.bs

+14-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,16 @@ stated otherwise it is unset.
6161
<p>All <a for=/>documents</a> have an associated <dfn>list of pending fullscreen events</dfn>, which
6262
is an <a>ordered set</a> of (<a>string</a>, <a>element</a>) <a>tuples</a>. It is initially empty.
6363

64-
<p>To <dfn>fullscreen an <var>element</var></dfn>, set <var>element</var>'s <a>fullscreen flag</a>
65-
and <a for="top layer">add</a> it to its <a>node document</a>'s <a>top layer</a>.
64+
<p>To <dfn>fullscreen an <var>element</var></dfn>:
65+
66+
<ol>
67+
<li><p>Run <a>hide all popovers</a> given <var>element</var>'s <a>node document</a>.
68+
69+
<li><p>Set <var>element</var>'s <a>fullscreen flag</a>.
70+
71+
<li><p><a for="top layer">Add</a> <var>element</var> to <var>element</var>'s <a>node document</a>'s
72+
<a>top layer</a>.
73+
</ol>
6674

6775
<p>To <dfn>unfullscreen an <var>element</var></dfn>, unset <var>element</var>'s
6876
<a>fullscreen flag</a> and <a>iframe fullscreen flag</a> (if any), and <a for=set>remove</a> it from
@@ -230,6 +238,10 @@ if all of the following are true, and false otherwise:
230238
<li><p><var>element</var>'s <a>node document</a> is <a>allowed to use</a> the "<code><a
231239
data-lt="fullscreen-feature">fullscreen</a></code>" feature.
232240
<!-- cross-process, recursive -->
241+
242+
<li><p><var>element</var> <a for=Element>namespace</a> is not the <a>HTML namespace</a> or
243+
<var>element</var>'s <a>popover visibility state</a> is <a for="popover visibility
244+
state">hidden</a>.
233245
</ul>
234246

235247
<div algorithm="requestFullscreen(options)">

0 commit comments

Comments
 (0)