CSS dynamic-range Media Feature

Beginner
2 examples
Updated: Nov 2026

Definition and Usage

The dynamic-range media feature reports whether the output device supports standard or high dynamic range. Use it to enhance highlights carefully on HDR screens.

CSS Syntax

syntax.css
@media (dynamic-range: high) {
  .hero { color: color(display-p3 1 0.9 0.2); }
}

Feature Values

ValueMeaningTry it
standardStandard dynamic range displayTry it
highHigh dynamic range capable displayTry it

CSS Examples

HDR accent

example.css
@media (dynamic-range: high) {
  .glow {
    color: color(display-p3 1 0.85 0.2);
  }
}
Try It Yourself

Browser Support

dynamic-range is a CSS media feature.

✓ Media Queries Level 5

dynamic-range

Treat as progressive enhancement.

88% Modern browsers
Google Chrome Recent
Full support
Mozilla Firefox Recent
Full support
Apple Safari Recent
Full support
Microsoft Edge Recent
Full support
dynamic-range Growing support

Bottom line: Keep usable default styles outside the query.

Frequently Asked Questions

It approximates whether the display can show high brightness/contrast HDR content.
No. Keep standard colors by default and enhance only when high matches.
No. color-gamut is about color volume; dynamic-range is about brightness/contrast capability.
video-dynamic-range targets the video plane specifically.
Available in modern Chromium and Safari; treat as progressive enhancement.

Next: CSS Properties

Browse CSS property tutorials.

CSS Properties →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

2 people found this page helpful