CSS mask-border-mode Property

❮ Previous Reference Next ❯

Example

.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;
}

Meaning:

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

Default value:alpha
Inherited:No
Animatable:No
Version:CSS3
JavaScript syntax:
object.style.maskBorderMode="alpha|luminance|initial|inherit|revert|revert-layer|unset";



Standard Syntax

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



Browser Support




Status







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 ❯