HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

mask-mode

Description

The mask-mode property for CSS indicates whether the is treated as luminance mask or alpha mask.

Syntax

CSS

mask-mode: value;

JS

object.style.maskMode = "value";

Values

<'mask-mode'> = <masking-mode>#
<masking-mode> = alpha | luminance | match-source
alpha

Indicates the alpha values of the mask layer image should be used as the mask values.

luminance

Indicates the luminance values of the mask layer image should be used as the mask values.

match-source

The value specified by the referenced mask element's mask-type property must be used.

Initial

match-source

Examples

1 · alpha

2 · luminance

3 · match-source

4 · JS