mask-position

Sets the initial position of the mask image within the masking area. It works exactly like 'background-position'.

It is documented as part of the CSS Masking specification.

/* Usage Example */
.pushed-mask {
  /* Positions the mask 20px from the left and 50px from the top */
  mask-position: 20px 50px;
}

/* Global values */
mask-position: inherit;
mask-position: initial;
mask-position: revert;
mask-position: revert-layer;
mask-position: unset;
Newly available Since 2023 88% global usage

Since 2023 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

120+
53+
15.4+
120+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC