Skip to content

Commit d16ef24

Browse files
committed
[selectors-4] Add :fullscreen and :picture-in-picture w3c#3796
1 parent 08aaa4c commit d16ef24

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

selectors-4/Overview.bs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ The Future-element Pseudo-class: '':future''</h3>
24342434

24352435

24362436
<h2 id='resource-pseudos'>
2437-
Resource State Pseudos</h2>
2437+
Resource State Pseudo-classes</h2>
24382438

24392439
The pseudo-classes in this section apply to elements that represent loaded resources,
24402440
particularly images/videos,
@@ -2498,6 +2498,9 @@ Sound State: the '':muted'' and '':volume-locked'' pseudo-classes</h3>
24982498
when programmatically changing the element’s volume
24992499
does not change the element's [=HTMLMediaElement/effective media volume=].
25002500

2501+
<h2 id="display-state-pseudos">
2502+
Element Display State Pseudo-classes</h2>
2503+
25012504
<h3 id="modal-state">
25022505
Modal (Exclusive Interaction) State: the '':modal'' pseudo-class</h3>
25032506

@@ -2507,6 +2510,32 @@ Modal (Exclusive Interaction) State: the '':modal'' pseudo-class</h3>
25072510
Multiple elements can be '':modal'' simultaneously,
25082511
with only one of them active (able to receive input).
25092512

2513+
<div class="example">
2514+
For example, the <{dialog}> element is '':modal''
2515+
when opened with the {{HTMLDialogElement/showModal()}} API.
2516+
Similarly, a '':fullscreen'' element is also '':modal''
2517+
when opened with the {{requestFullscreen()}} API,
2518+
since this prevents interaction with the rest of the page.
2519+
</div>
2520+
2521+
<h3 id="fullscreen-state">
2522+
Fullscreen Presentation State: the '':fullscreen'' pseudo-class</h3>
2523+
2524+
The <dfn>:fullscreen</dfn> pseudo-class represents
2525+
an element which is displayed in a mode that
2526+
takes up most (usually all) of the screen,
2527+
such as that defined by the Fullscreen API. [[FULLSCREEN]]
2528+
2529+
<h3 id="pip-state">
2530+
Picture-in-Picture Presentation State: the '':picture-in-picture'' pseudo-class</h3>
2531+
2532+
The <dfn>:picture-in-picture</dfn> pseudo-class represents
2533+
an element which is displayed in a mode that
2534+
takes up most (usually all) of the viewport,
2535+
and whose viewport is confined to part of the screen
2536+
while being displayed over other content,
2537+
for example when using the Picture-in-Picture API. [[picture-in-picture]]
2538+
25102539
<h2 id='input-pseudos'>
25112540
The Input Pseudo-classes</h2>
25122541

0 commit comments

Comments
 (0)