← Back to release summary

Media element pseudo-classes

Category
Multimedia
Type
Chromium catches up
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: https://wpt.fyi/results/?q=feature%3Amedia-pseudos The remaining failure in sound-state.html depends on a change to how the muted content attribute should work in HTML: https://crbug.com/509570175 https://crrev.com/c/7831199

Summary

The :playing, :paused, :seeking, :buffering, :stalled, :muted, and :volume-locked CSS pseudo-classes match <audio> and <video> elements based on their state. This is one of the focus areas in https://wpt.fyi/interop-2026.

Motivation

Allows styling of media elements or custom media controls based on the state of the media element. For example, a large play button overlaying a video could be hidden while playing. There is no expectation that custom media controls can be implemented entirely with CSS, as there is still a lot of state not exposed to CSS.

Standards & signals

Ecosystem

View on chromestatus.com