CSS mask-border-source Property

❮ Previous Reference Next ❯


.example {
  /* Standard syntax*/
  mask-border-source: url("hello-world.png");

  /* Chromium based browser */
  -webkit-mask-box-image-source: url("hello-world.png");


The mask-border-source CSS property sets the source image used to create an element's mask-border.

The mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border.

Chromium-based browsers support an outdated version of this property — -webkit-mask-box-image-source — with a prefix.

Default value:none
JavaScript syntax:

Standard Syntax

mask-border-source: none|url|initial|inherit|revert|revert-layer|unset;

Browser Support


Property Values

The following table describes the values of this property:

Value Description
none No mask border is used.
url Image reference to use for the mask border.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  mask-border-source: none;
❮ Previous Reference Next ❯