property

backdrop-filter — CSS reference

Filters the visible backdrop behind an element rather than the element contents. Initial none; not inherited. A transparent or translucent background reveals the effect. Backdrop boundaries constrain the input and are distinct from arbitrary stacking contexts. Provide a readable fallback for unsupported effects.

Formal Syntax & Structure

css syntaxcss
none | [ <filter-function> | <url> ]+

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS visual effects lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative; margin:20px;width:80px;height:60px;background:rgb(255,0,0);box-sizing:content-box} #a{background:transparent;backdrop-filter:invert(1)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative effect example.</p></body></html>
CSS Reference