mask-border-source

Sets the image that will be used to create the mask border. This image is sliced and applied to the border area of an element.

Quick example

.masked-element {
  /* Uses an external image as the source for the mask border */
  mask-border-source: url('border-mask.png');
}

Quick facts

Initial value
none
Inherited
No
Applies to
all elements and SVG container elements
Animation type
discrete

Values

none

mask-border-source Browser Support

Limited availability92% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

17.2+
ESC