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.
Learning resources on MDN
Browser support
- Chrome ❌ See crbug.com/40748199
- Chrome Android ❌ See crbug.com/40748199
- Edge ❌ See crbug.com/40748199
- Firefox ❌
- Firefox for Android ❌
- 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).