Skip to content

Commit 7af6ea3

Browse files
authored
Don't close ancestor popovers when fullscreening
Without this change, fullscreening an element inside an open popover will make the fullscreen element display:none. Issue: whatwg/html#9998 Corresponding HTML PR: whatwg/html#10116
1 parent 4cafed1 commit 7af6ea3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

fullscreen.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ is an <a>ordered set</a> of (<a>string</a>, <a>element</a>) <a>tuples</a>. It is
6767
<p>To <dfn>fullscreen an <var>element</var></dfn>:
6868

6969
<ol>
70-
<li><p>Run <a>hide all popovers</a> given <var>element</var>'s <a>node document</a>.
70+
<li><p>Let <var>hideUntil</var> be the result of running <a>topmost popover ancestor</a> given
71+
<var>element</var>, null, and false.
72+
73+
<li><p>If <var>hideUntil</var> is null, then set <var>hideUntil</var> to <var>element</var>'s
74+
<span>node document</span>.
75+
76+
<li><p>Run <a>hide all popovers until</a> given <var>hideUntil</var>, false, and true.
7177

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

0 commit comments

Comments
 (0)