Skip to content

Commit 5a442a5

Browse files
committed
[selectors] Add :playing and :paused, per WG resolution.
1 parent 6a87eff commit 5a442a5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

selectors/Overview.bs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,31 @@ The Future-element Pseudo-class: '':future''</h3>
21712171
sibling of a '':current'' element.
21722172

21732173

2174+
<h2 id='resource-pseudos'>
2175+
Resource State Pseudos</h2>
2176+
2177+
The pseudo-classes in this section apply to elements that represent loaded resources,
2178+
particularly images/videos,
2179+
and allow authors to select them based on some quality of their "state".
2180+
2181+
<h3 id="video-state">
2182+
Video/Audio Play State: the '':playing'' and '':paused'' pseudo-classes</h3>
2183+
2184+
The <dfn>:playing</dfn> pseudo-class represents an element
2185+
representing an audio, video, or similar resource
2186+
that is capable of being "played" or "paused",
2187+
when that element is "playing".
2188+
(This includes both when the element is explicitly playing,
2189+
and when it's temporarily stopped for some reason not connected to user intent,
2190+
but will automatically resume when that reason is resolved,
2191+
such as a "buffering" state.)
2192+
2193+
The <dfn>:paused</dfn> pseudo-class represents the same elements,
2194+
but instead match when the element is <em>not</em> "playing".
2195+
(This includes both an explicit "paused" state,
2196+
and other non-playing states like "loaded, hasn't been activated yet", etc.)
2197+
2198+
21742199
<h2 id='input-pseudos'>
21752200
The Input Pseudo-classes</h2>
21762201

0 commit comments

Comments
 (0)