Path: blob/main/files/en-us/web/css/-webkit-mask-position-y/index.md
6568 views
------{{CSSRef}}{{Non-standard_header}}
The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image.
{{cssinfo}}
Syntax
Values
<length-percentage>: A length indicating the position of the top side of the image relative to the box's top padding edge. Percentages are calculated against the vertical dimension of the box padding area. A value of
0%means the top edge of the image is aligned with the box's top padding edge and a value of100%means the bottom edge of the image is aligned with the box's bottom padding edge.
top: Equivalent to
0%.
bottom: Equivalent to
100%.
center: Equivalent to
50%.
Formal definition
{{CSSInfo}}
Formal syntax
Examples
Vertically positioning a mask image
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}
See also
{{cssxref("-webkit-mask-position")}}, {{cssxref("-webkit-mask-position-x")}}, {{cssxref("-webkit-mask-origin")}}, {{cssxref("-webkit-mask-attachment")}}