:playing
Media in the playing state.
Specificity(0, 1, 0)
:playing
Behavior
- It includes temporary buffering or stalled interruptions.
- It stops matching after a user pause or when playback ends.
Examples
video:playingMatches: <video controls src="lesson.mp4"></video>
<audio controls src="lesson.mp3"></audio>Common mistakes
- It does not mean currentTime changes at every instant.
- Do not treat it as merely the absence of :paused.
:paused
Media outside the playing state.
Specificity(0, 1, 0)
:paused
Behavior
- It commonly matches before starting and after an explicit pause.
- It is mutually exclusive with :playing.
Examples
audio:paused<video controls src="lesson.mp4"></video>
Matches: <audio controls src="lesson.mp3"></audio>Common mistakes
- It does not describe waiting for missing data.
- Do not assume it only appears after pressing a button.
:seeking
Media seeking to a playback position.
Specificity(0, 1, 0)
:seeking
Behavior
- It may last only a few frames.
- Native controls can activate it by changing position.
Examples
.player video:seeking<div class="player">
Matches: <video controls src="film.mp4"></video>
</div>Common mistakes
- It is not the same as buffering.
- Do not use simulation to report a real match.