← Back to release summary

Media query support for video <source> elements

Category
Multimedia
Type
Chromium catches up
Status
Enabled by default (Chrome 120)
Intent stage
None

WPT details: https://wpt.fyi/results/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-source-media-env-change.html?label=master&label=experimental&aligned

Summary

Adds support for CSS media queries to <source> elements used with <video> elements. Allowing developers to use media query syntax to tell the browser which source should be preferred for a given environment.

Standards & signals

Ecosystem

Docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#media

View on chromestatus.com