mask-border-mode

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

Syntax

css

/* Keyword values */
mask-border-mode: luminance;
mask-border-mode: alpha;

/* Global values */
mask-border-mode: inherit;
mask-border-mode: initial;
mask-border-mode: revert;
mask-border-mode: revert-layer;
mask-border-mode: unset;

Values

luminance

The luminance values of the mask border image are used as the mask values.

alpha

The alpha values of the mask border image are used as the mask values.

Formal definition

Initial valuealpha
Applies toall elements; In SVG, it applies to container elements excluding the <defs> element and all graphics elements
Inheritedno
Computed valueas specified
Animation typediscrete

Formal syntax

mask-border-mode = 
luminance |
alpha

Specifications

Specification
CSS Masking Module Level 1
# the-mask-border-mode

Browser compatibility

This property is not supported by any browser yet.

See also