CSS mask-border-mode Property

❮ Previous Reference Next ❯


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

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


The mask-border-mode CSS property specifies the blending mode used in a mask-border.

Default value:alpha
JavaScript syntax:

Standard Syntax

mask-border-mode: alpha|luminance|initial|inherit|revert|revert-layer|unset;

Browser Support


Property Values

The following table describes the values of this property:

Value Description
alpha The alpha values of the mask border image are used as the mask values.
luminance The luminance values of the mask border image are used as the mask values.
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-mode: alpha;
❮ Previous Reference Next ❯