@@ -77,6 +77,7 @@ its <a>node document</a>'s <a>top layer</a>.
77
77
78
78
<hr>
79
79
80
+ <div algorithm>
80
81
<p> To <dfn>fully exit fullscreen</dfn> a <a for=/>document</a> <var> document</var> , run these steps:
81
82
82
83
<ol>
@@ -88,7 +89,9 @@ its <a>node document</a>'s <a>top layer</a>.
88
89
89
90
<li><p> <a>Exit fullscreen</a> <var> document</var> .
90
91
</ol>
92
+ </div>
91
93
94
+ <div algorithm="fullscreen removing steps">
92
95
<p id=removing-steps> Whenever the <a>removing steps</a> run with a <var> removedNode</var> , run
93
96
these steps:
94
97
@@ -110,13 +113,14 @@ these steps:
110
113
111
114
<li>
112
115
<p> If <var> document</var> 's <a>top layer</a> <a for=set>contains</a> <var> node</var> ,
113
- <a for=set>remove</a> <var> node</var> from <var> document</var> 's <var > top layer</var > .
116
+ <a for=set>remove</a> <var> node</var> from <var> document</var> 's <a >top layer</a > .
114
117
115
118
<p class=note> Other specifications can add and remove elements from <a>top layer</a> , so
116
119
<var> node</var> might not be <var> document</var> 's <a>fullscreen element</a> . For example,
117
120
<var> node</var> could be an open <{dialog}> element.
118
121
</ol>
119
122
</ol>
123
+ </div>
120
124
121
125
<p> Whenever the <a>unloading document cleanup steps</a> run with a <var> document</var> ,
122
126
<a>fully exit fullscreen</a> <var> document</var> .
@@ -128,6 +132,7 @@ security risk, or platform limitation.
128
132
129
133
<hr>
130
134
135
+ <div algorithm>
131
136
<p> To <dfn>run the fullscreen steps</dfn> for a <a>document</a> <var> document</var> , run these
132
137
steps:
133
138
@@ -150,6 +155,7 @@ steps:
150
155
</ol>
151
156
152
157
<p class=note> These steps integrate with the <a for=/>event loop</a> defined in HTML. [[!HTML]]
158
+ </div>
153
159
154
160
155
161
@@ -227,6 +233,7 @@ if all of the following are true, and false otherwise:
227
233
<!-- cross-process, recursive -->
228
234
</ul>
229
235
236
+ <div algorithm>
230
237
<p> The <dfn method for=Element><code>requestFullscreen(<var>options</var>)</code></dfn> method,
231
238
when invoked, must run these steps:
232
239
@@ -352,6 +359,7 @@ when invoked, must run these steps:
352
359
353
360
<p class=note> Implementations with out-of-process <a for=/>browsing contexts</a> are left as an
354
361
exercise to the reader. Input welcome on potential improvements.
362
+ </div>
355
363
356
364
<p> The <dfn attribute for=Document><code>fullscreenEnabled</code></dfn> attribute's getter must
357
365
return true if the <a>context object</a> is <a>allowed to use</a> the "<code><a
@@ -363,6 +371,7 @@ false if <a>context object</a>'s <a>fullscreen element</a> is null, and true oth
363
371
364
372
<p class=note> Use the {{DocumentOrShadowRoot/fullscreenElement}} attribute instead.
365
373
374
+ <div algorithm>
366
375
<p> The
367
376
<dfn attribute for=DocumentOrShadowRoot id=dom-document-fullscreenelement><code>fullscreenElement</code></dfn>
368
377
attribute's getter must run these steps:
@@ -379,6 +388,7 @@ attribute's getter must run these steps:
379
388
380
389
<li><p> Return null.
381
390
</ol>
391
+ </div>
382
392
383
393
<p> A <a>document</a> is said to be a <dfn>simple fullscreen document</dfn> if there is exactly one
384
394
<a>element</a> in its <a>top layer</a> that has its <a>fullscreen flag</a> set.
@@ -387,6 +397,7 @@ attribute's getter must run these steps:
387
397
<a>simple fullscreen document</a> . For example, in addition to the <a>fullscreen element</a> there
388
398
could be an open <{dialog}> element.
389
399
400
+ <div algorithm>
390
401
<p> To <dfn>collect documents to unfullscreen</dfn> given <var> doc</var> , run these steps:
391
402
392
403
<ol>
@@ -417,7 +428,9 @@ could be an open <{dialog}> element.
417
428
have more than one <a>element</a> in its <a>top layer</a> with the <a>fullscreen flag</a> set,
418
429
in which case that document will still remain in fullscreen.
419
430
</ol>
431
+ </div>
420
432
433
+ <div algorithm>
421
434
<p> To <dfn>exit fullscreen</dfn> a <a for=/>document</a> <var> doc</var> , run these steps:
422
435
423
436
<ol>
@@ -496,6 +509,7 @@ could be an open <{dialog}> element.
496
509
497
510
<li><p> Resolve <var> promise</var> with undefined.
498
511
</ol>
512
+ </div>
499
513
500
514
<p> The <dfn method for=Document><code>exitFullscreen()</code></dfn> method, when invoked, must
501
515
return the result of running <a>exit fullscreen</a> on the <a>context object</a> .
0 commit comments