Limited support Useful when prefers-reduced-transparency media query helps adapt the interface to user preferences, display capability, or environment conditions.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
118
118
113
118

The HTTP Sec-CH-Prefers-Reduced-Transparency request header is a user agent client hint that indicates the user agent's preference for reduced transparency.

119
119
119
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Experimental
  • Requires an experimental browser flag to be enabled

Syntax

CSS
.overlay {
  background: rgba(0, 0, 0, 0.5);
}
@media (prefers-reduced-transparency: reduce) {
  .overlay {
    background: rgb(30, 30, 30);
  }
}

Live demo

semi-transparentoverlay

CSS semi-transparentoverlay demo.

PreviewFullscreen

opaque to change

CSS opaque to change demo.

PreviewFullscreen

glasseffect. alternative

CSS glasseffect. alternative demo.

PreviewFullscreen

Use cases

  • Adaptive styling

    Use prefers-reduced-transparency media query to tailor layout or presentation to device features and user settings.

  • Progressive enhancement

    Keep the default experience solid, then layer in device-specific or preference-aware improvements.

Cautions

  • Do not rely on a media condition as the only path to essential functionality.
  • Document the breakpoint or environment strategy so conditions stay consistent across the codebase.

Accessibility

  • Media-query adaptations should preserve keyboard access, reading order, and touch usability.
  • Preference-aware styling should enhance accessibility rather than replace baseline accessible defaults.