Each feature in detail
MDN The dynamic-range-limit CSS property specifies the maximum luminance allowed for High Dynamic Range (HDR) content.
Live preview Example from MDN
img {
dynamic-range-limit: standard;
transition: dynamic-range-limit 0.6s;
}
img:hover,
img:focus {
dynamic-range-limit: no-limit;
}
img {
max-height: 100vh;
}
@media not (dynamic-range: high) {
body::before {
content: "Your device may not display the image at full brightness.";
background-color: wheat;
display: block;
text-align: center;
}
}
@supports not (dynamic-range-limit: standard) {
body::before {
content: "Your browser doesn't support the dynamic-range-limit property.";
background-color: wheat;
display: block;
text-align: center;
}
}
<img
src="https://mdn.github.io/shared-assets/images/examples/ultra-hdr.jpg"
alt="A subway station platform with bright white overhead strip lights"
tabindex="0" />
Syntax
standard | no-limit | constrained | <dynamic-range-limit-mix()>
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
- Initial
- no-limit
- Applies to
- all elements
- Inherited
- yes
- Percentages
- n/a
- Computed value
- see Computed Value for dynamic-range-limit
- Canonical order
- per grammar
- Animation type
- by dynamic-range-limit-mix()
Browser support
First browser version supporting dynamic-range-limit | Chrome | 136 |
| Edge | 136 |
| Firefox | No |
| Safari | 26 |
| Chrome Android | 136 |
| Safari iOS | 26 |
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The dynamic-range-limit-mix() CSS function creates a custom maximum luminance limit by mixing different dynamic-range-limit keywords in specified amounts.
Live preview Example from MDN
img {
dynamic-range-limit: dynamic-range-limit-mix(standard 70%, no-limit 30%);
}
<img src="my-hdr-image.jpg" alt="my image" />
Syntax
dynamic-range-limit-mix( [ <'dynamic-range-limit'> && <percentage [0,100]> ]# )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Browser support
First browser version supporting dynamic-range-limit-mix() | Chrome | 136 |
| Edge | 136 |
| Firefox | No |
| Safari | No |
| Chrome Android | 136 |
| Safari iOS | No |
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
color-hdr([ <color> && <number [0,∞]>? ]#{2})
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
ictcp([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
jzazbz([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax
jzczhz([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗