Limited supportUseful when video-dynamic-range media query helps adapt the interface to user preferences, display capability, or environment conditions.

Overview

The video-dynamic-range CSS media query sets styles based on whether a device can display video with at least standard range colors or at least high range colors. Non-visual devices will match neither.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
98
98
100
98
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Experimental
  • Requires an experimental browser flag to be enabled
Notes 1 item(s)
Experimental
  • Requires an experimental browser flag to be enabled
Notes 1 item(s)
Experimental
  • Requires an experimental browser flag to be enabled

Syntax

CSS
@media (video-dynamic-range: high) {
  .video-player {
    background: #000;
  }
}

Live demo

HDR (high)

CSS HDR (high) demo.

PreviewFullscreen

SDR (standard)

CSS SDR (standard) demo.

PreviewFullscreen

Hdrbackground

CSS HDRbackground demo.

PreviewFullscreen

Use cases

  • Adaptive styling

    Use video-dynamic-range media query to tailor layout or presentation to device features and user settings.

  • Progressive enhancement

    Keep the default experience solid, then layer in device-specific or preference-aware improvements.

Cautions

  • Do not rely on a media condition as the only path to essential functionality.
  • Document the breakpoint or environment strategy so conditions stay consistent across the codebase.

Accessibility

  • Media-query adaptations should preserve keyboard access, reading order, and touch usability.
  • Preference-aware styling should enhance accessibility rather than replace baseline accessible defaults.

Powered by web-features