Media element pseudo-classes
Limited availability
The :playing
, :paused
, :seeking
, :buffering
, :stalled
, :muted
, and :volume-locked
CSS pseudo-classes match <audio>
and <video>
elements based on their state.
To learn more, see
:paused,
:playing at MDN.
Compatibility
- Chrome ❌ See crbug.com/40748199
- Chrome Android ❌ See crbug.com/40748199
- Edge ❌ See crbug.com/40748199
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari 15.4 Released on 2022-03-14
- Safari on iOS 15.4 Released on 2022-03-14
Specifications
- Selectors Level 4 (#resource-pseudos), from Cascading Style Sheets (CSS) Working Group (W3C).
- HTML Standard (#pseudo-classes), from HTML Workstream (WHATWG).