Skip to content

Commit 4d9fcf0

Browse files
committed
Meta: add/update some definitions
* Adds appropriate <dfn>s and references for navigationUI and its values * Adds appropriate <dfn>s and references for fullscreenchange and fullscreenerror * Fixes the for="" value for onfullscreenchange and onfullscreenerror to include both Document and Element, so that now the IDL block for Element links to the correct place.
1 parent 3d0e592 commit 4d9fcf0

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

fullscreen.bs

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,12 @@ partial interface mixin DocumentOrShadowRoot {
202202
<dd>
203203
Displays <var>element</var> fullscreen and resolves <var>promise</var> when done.
204204

205-
When supplied, <var>options</var>'s <code>navigationUI</code> member indicates whether showing
206-
navigation UI while in fullscreen is preferred or not. If set to "<code>show</code>", navigation
207-
simplicity is preferred over screen space, and if set to "<code>hide</code>", more screen space
208-
is preferred. User agents are always free to honor user preference over the application's. The
209-
default value "<code>auto</code>" indicates no application preference.
205+
When supplied, <var>options</var>'s {{FullscreenOptions/navigationUI}} member indicates whether
206+
showing navigation UI while in fullscreen is preferred or not. If set to
207+
"{{FullscreenNavigationUI/show}}", navigation simplicity is preferred over screen space, and if
208+
set to "{{FullscreenNavigationUI/hide}}", more screen space is preferred. User agents are always
209+
free to honor user preference over the application's. The default value
210+
"{{FullscreenNavigationUI/auto}}" indicates no application preference.
210211

211212
<dt><code><var>document</var> . {{Document/fullscreenEnabled}}</code>
212213
<dd><p>Returns true if <var>document</var> has the ability to display <a>elements</a> fullscreen
@@ -234,7 +235,7 @@ if all of the following are true, and false otherwise:
234235
<!-- cross-process, recursive -->
235236
</ul>
236237

237-
<div algorithm>
238+
<div algorithm="requestFullscreen(options)">
238239
<p>The <dfn method for=Element><code>requestFullscreen(<var>options</var>)</code></dfn> method steps
239240
are:
240241

@@ -273,7 +274,7 @@ are:
273274
<li>
274275
<p>If <var>error</var> is false, then resize <var>pendingDoc</var>'s
275276
<a>top-level browsing context</a>'s <a>active document</a>'s viewport's dimensions, optionally
276-
taking into account <var>options</var>'s <code>navigationUI</code> member:
277+
taking into account <var>options</var>["{{FullscreenOptions/navigationUI}}"]:
277278
<!-- cross-process -->
278279

279280
<table>
@@ -285,15 +286,15 @@ are:
285286
</thead>
286287
<tbody>
287288
<tr>
288-
<td>"<code>hide</code>"</td>
289+
<td>"<dfn enum-value for="FullscreenNavigationUI"><code>hide</code></dfn>"</td>
289290
<td>full dimensions of the screen of the output device</td>
290291
</tr>
291292
<tr>
292-
<td>"<code>show</code>"</td>
293+
<td>"<dfn enum-value for="FullscreenNavigationUI"><code>show</code></dfn>"</td>
293294
<td>dimensions of the screen of the output device clamped to allow the user agent to show page navigation controls</td>
294295
</tr>
295296
<tr>
296-
<td>"<code>auto</code>"</td>
297+
<td>"<dfn enum-value for="FullscreenNavigationUI"><code>auto</code></dfn>"</td>
297298
<td>user-agent defined, but matching one of the above</td>
298299
</tr>
299300
</tbody>
@@ -315,7 +316,7 @@ are:
315316
<p>If <var>error</var> is true:
316317

317318
<ol>
318-
<li><p><a for=set>Append</a> (<code>fullscreenerror</code>, <a>this</a>) to
319+
<li><p><a for=set>Append</a> ({{fullscreenerror}}, <a>this</a>) to
319320
<var>pendingDoc</var>'s <a>list of pending fullscreen events</a>.
320321

321322
<li><p>Reject <var>promise</var> with a {{TypeError}} exception and terminate these
@@ -346,7 +347,7 @@ are:
346347

347348
<li><p><a lt="fullscreen an element">Fullscreen <var>element</var></a> within <var>doc</var>.
348349

349-
<li><p><a for=set>Append</a> (<code>fullscreenchange</code>, <var>element</var>) to
350+
<li><p><a for=set>Append</a> ({{fullscreenchange}}, <var>element</var>) to
350351
<var>doc</var>'s <a>list of pending fullscreen events</a>.
351352
</ol>
352353

@@ -456,7 +457,7 @@ could be an open <{dialog}> element.
456457

457458
<li><p>If <var>doc</var>'s <a>fullscreen element</a> is not <a>connected</a>:
458459
<ol>
459-
<li><p><a for=set>Append</a> (<code>fullscreenchange</code>, <var>doc</var>'s
460+
<li><p><a for=set>Append</a> ({{fullscreenchange}}, <var>doc</var>'s
460461
<a>fullscreen element</a>) to <var>doc</var>'s
461462
<a>list of pending fullscreen events</a>.
462463
</ol>
@@ -482,7 +483,7 @@ could be an open <{dialog}> element.
482483
<p><a>For each</a> <var>exitDoc</var> in <var>exitDocs</var>:
483484

484485
<ol>
485-
<li><p><a for=set>Append</a> (<code>fullscreenchange</code>, <var>exitDoc</var>'s
486+
<li><p><a for=set>Append</a> ({{fullscreenchange}}, <var>exitDoc</var>'s
486487
<a>fullscreen element</a>) to <var>exitDoc</var>'s <a>list of pending fullscreen events</a>.
487488

488489
<li><p>If <var>resize</var> is true, <a lt="unfullscreen a document">unfullscreen
@@ -496,7 +497,7 @@ could be an open <{dialog}> element.
496497
<p><a>For each</a> <var>descendantDoc</var> in <var>descendantDocs</var>:
497498

498499
<ol>
499-
<li><p><a for=set>Append</a> (<code>fullscreenchange</code>, <var>descendantDoc</var>'s
500+
<li><p><a for=set>Append</a> ({{fullscreenchange}}, <var>descendantDoc</var>'s
500501
<a>fullscreen element</a>) to <var>descendantDoc</var>'s
501502
<a>list of pending fullscreen events</a>.
502503

@@ -526,11 +527,11 @@ result of running <a>exit fullscreen</a> on <a>this</a>.
526527
<th><a>event handler event type</a>
527528
<tbody>
528529
<tr>
529-
<td><dfn attribute for=Document id=handler-document-onfullscreenchange><code>onfullscreenchange</code></dfn>
530-
<td><code>fullscreenchange</code>
530+
<td><dfn attribute for=Document,Element id=handler-document-onfullscreenchange><code>onfullscreenchange</code></dfn>
531+
<td><dfn event for=Document,Element><code>fullscreenchange</code></dfn>
531532
<tr>
532-
<td><dfn attribute for=Document id=handler-document-onfullscreenerror><code>onfullscreenerror</code></dfn>
533-
<td><code>fullscreenerror</code>
533+
<td><dfn attribute for=Document,Element id=handler-document-onfullscreenerror><code>onfullscreenerror</code></dfn>
534+
<td><dfn event for=Document,Element><code>fullscreenerror</code></dfn>
534535
</table>
535536

536537
<p class=note>These are not supported by {{ShadowRoot}} or {{Window}} objects, and there are no

0 commit comments

Comments
 (0)