mask-border-repeat

Determines how the edges and corners of the mask border image are repeated or stretched to fill the mask area.

It is documented as part of the CSS Masking specification.

/* Usage Example */
.masked-element {
  mask-border-source: url(';mask-edge.png');
  /* Repeats the mask image edges to fill the border */
  mask-border-repeat: repeat;
}

/* Syntax */
mask-border-repeat: stretch;
mask-border-repeat: repeat;
mask-border-repeat: round;
mask-border-repeat: space;

/* Global values */
mask-border-repeat: inherit;
mask-border-repeat: initial;
mask-border-repeat: revert;
mask-border-repeat: revert-layer;
mask-border-repeat: unset;
Widely available Since 2015 92% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

1+
17.2+
79+
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