property

webkit box reflect — CSS reference

Nonstandard reflection effect. The direction and offset place a mirrored painting beyond the element; an optional mask can attenuate it. Reflection is decorative and does not reserve additional layout space. Keep the original meaningful content available without the effect.

Formal Syntax & Structure

css syntaxcss
-webkit-box-reflect: below 4px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-box-reflect</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{width:40px;height:30px;background:rgb(255,0,0);-webkit-box-reflect:below 4px}</style><body><div id="a" role="img" aria-label="Decorative red rectangle"></div></body></html>
CSS Reference