Media element pseudo-classes
The :playing, :paused, :seeking, :buffering, :stalled, :muted, and :volume-locked CSS pseudo-classes match <audio> and <video> elements based on their state.
Status
Limited availability
Specifications
- Selectors Level 4 (#resource-pseudos), from Cascading Style Sheets (CSS) Working Group (W3C).
- HTML (#pseudo-classes), from HTML Workstream (WHATWG).
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
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist