Favorites

dynamic-range-limit-mix() CSS Function

dynamic-range-limit-mix()
CSS FunctionThis function is supported in some modern browsers, but not all.
Updated 21st November 2026

The dynamic-range-limit-mix() function creates a custom brightness limit for HDR content by mixing the keywords of dynamic-range-limit.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

Description

The dynamic-range-limit-mix() CSS function creates a custom brightness limit for high dynamic range (HDR) content by mixing two or more values of the dynamic-range-limit property in chosen proportions. On HDR screens, HDR images and videos can be much brighter than normal page white, which can look harsh next to standard content. dynamic-range-limit lets authors cap that brightness, and this function allows values in between the predefined keywords.

The keywords being mixed are standard (HDR content is limited to the brightness of standard white), constrained (some extra brightness is allowed, but limited) and no-limit (HDR content may use the full brightness of the screen). Each keyword in the mix is paired with a percentage, and the percentages are normalized if they do not add up to 100%. For example, dynamic-range-limit-mix(standard 70%, no-limit 30%) allows a little HDR headroom without the full effect.

The function has no effect on standard dynamic range (SDR) screens or on SDR content. It is supported in Chromium-based browsers.

/* Gallery thumbnails: a touch of HDR, not the full effect */
.thumbnail img {
  dynamic-range-limit: dynamic-range-limit-mix(standard 70%, no-limit 30%);
}

/* Full brightness when the image is opened */
.lightbox img {
  dynamic-range-limit: no-limit;
}

Syntax

dynamic-range-limit-mix() = dynamic-range-limit-mix( [ <'dynamic-range-limit'> && <percentage [0,100]> ]#{2,} )

Values

  • <'dynamic-range-limit'>A dynamic-range-limit value: standard, constrained, no-limit, or another dynamic-range-limit-mix() function.
  • <percentage>How much of that value to use, from 0% to 100%. The percentages are normalized so they add up to 100%.

Example

<div class="wrap">
<h1>CSS dynamic-range-limit-mix() examples</h1>
<div class="grid">
<div class="card">
<div class="photo standard"></div>
<div class="label">dynamic-range-limit: standard</div>
</div>
<div class="card">
<div class="photo mixed"></div>
<div class="label">dynamic-range-limit-mix(standard 70%, no-limit 30%)</div>
</div>
<div class="card">
<div class="photo full"></div>
<div class="label">dynamic-range-limit: no-limit</div>
</div>
</div>
<p class="note">The effect is only visible with HDR images on an HDR screen; on other screens the three look the same.</p>
</div>
/* Base demo layout */
* { box-sizing: border-box; }

body {
margin: 24px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
background: #f5f7fb;
color: #102a43;
}

.wrap {
max-width: 860px;
margin: 0 auto;
}

h1 {
font-size: 20px;
margin: 0 0 16px;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
}

.card {
background: #fff;
border-radius: 12px;
padding: 16px;
box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}

.label {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
font-size: 12px;
color: #486581;
margin-top: 10px;
word-break: break-word;
}

.note {
font-size: 13px;
color: #486581;
margin-top: 14px;
}

/* dynamic-range-limit-mix() examples */
.photo {
height: 150px;
border-radius: 10px;
/* HDR images would be needed to see a difference; this gradient stands in for one */
background: radial-gradient(circle at 70% 30%, #fff, #fde047 25%, #f97316 55%, #7c2d12);
}

.standard { dynamic-range-limit: standard; }
.mixed { dynamic-range-limit: dynamic-range-limit-mix(standard 70%, no-limit 30%); }
.full { dynamic-range-limit: no-limit; }
Open in editor

Browser Support

The following information will show you the current browser support for the CSS dynamic-range-limit-mix() function. Hover over a browser icon to see the version that first introduced support for this CSS function.

This function is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.