property

webkit mask position y — CSS reference

Vendor-specific component of mask positioning. It changes the vertical offset of a mask layer. Prefer the two-axis mask-position declaration so the other coordinate is explicit.

Formal Syntax & Structure

css syntaxcss
-webkit-mask-position-y: 20px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-mask-position-y</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{width:100px;height:100px;background:red;mask-image:linear-gradient(black,black);mask-size:20px 20px;mask-repeat:no-repeat;mask-position:0 0;-webkit-mask-position-y:20px}</style><body><div id="a" role="img" aria-label="Masked red square"></div></body></html>
CSS Reference