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