files/en-us/web/css/reference/at-rules/@media/dynamic-range/index.md
The dynamic-range CSS media feature can be used to test the combination of brightness, contrast ratio, and color depth that are supported by the {{glossary("user agent")}} and the output device.
[!NOTE] Some devices have high dynamic range capabilities that are not always 'on' and need to be activated (sometimes programmatically, sometimes by the user, sometimes based on the content). This media feature does not test whether the dynamic range capability is active; it only tests whether the device is capable of high dynamic range visuals.
The dynamic-range feature is specified as a keyword value chosen from the list below.
standard
high will also match the standard value.high
@media (dynamic-range: standard) {
p {
color: red;
}
}
@media (dynamic-range: high) {
p {
color: green;
}
}
{{Specifications}}
{{Compat}}