media-feature

Dynamic range — CSS reference

Tests output dynamic range capability, not whether a particular image uses HDR. High output requires sufficient brightness, contrast and color depth as defined by the specification; standard matches ordinary displays and can also match high-capability ones.

Formal Syntax & Structure

css syntaxcss
@media (dynamic-range: standard) { /* conditional declarations */ }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>dynamic-range</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}@media (dynamic-range: standard) {#a{color:rgb(0,100,0)}}</style><body><main id="a">Resize the viewport to explore this example.</main></body></html>
CSS Reference