media-feature

prefers-reduced-transparency — CSS reference

Detect a request to reduce translucent visual effects. Values are reduce and no-preference. Prefer an opaque surface that remains readable even when backdrop filtering is unavailable; then selectively introduce transparency only when appropriate. Lack of query support does not imply user consent to transparency.

Formal Syntax & Structure

css syntaxcss
@media (prefers-reduced-transparency: reduce) { … }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS accessible theme lab</title><style>body {margin:0} .sample {height:12px;background:#006050}p{--mode:default;background:#fff;color:#111}@media(prefers-reduced-transparency:reduce){p{--mode:reduce;background:#fff}}</style><body><p id="a">Opaque reading surface</p></body></html>
CSS Reference