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

mask-composite

Description

The mask-composite property for CSS defines the compositing operation used on the current mask layer with the mask layers below it.

Syntax

CSS

mask-composite: value;

JS

object.style.maskComposite = "value";

Values

<'mask-composite'> = <compositing-operator>#
<compositing-operator> = add | subtract | intersect | exclude
add

The source is placed over the destination.

subtract

The source is placed, where it falls outside of the destination.

intersect

The parts of source that overlap the destination, replace the destination.

exclude

The non-overlapping regions of source and destination are combined.

Initial

add

Examples

1 · add

2 · exclude

3 · intersect

4 · subtract

5 · JS