Working Draft · css-color-hdr

CSS Color HDR Module

1 property, 5 functions defined by this specification, 2 of them known to at least one browser (the others are badged Not in any browser yet).

Each feature in detail

dynamic-range-limit

Property Limited availability Modern CSS: dynamic-range-limit

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;
  }
}

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.

dynamic-range-limit-mix()

Function Limited availability Experimental Modern CSS: dynamic-range-limit

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%);
}

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.

hdr-color()

Function Not in any browser yet

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.

ictcp()

Function Not in any browser yet

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.

jzazbz()

Function Not in any browser yet

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.

jzczhz()

Function Not in any browser yet

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.