CSS mask-composite Property
Example
.example {
mask-image: url(hello-world.png);
mask-composite: intersect;
-webkit-mask-image: url(hello-world.png);
-webkit-mask-composite: intersect;
}
Meaning:
The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it.
Default value: | add |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
mask-composite: add|subtract|intersect|exclude|initial|inherit|revert|revert-layer|unset;
Browser Support
Status
Property Values
The following table describes the values of this property:
Value | Description |
---|---|
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 | 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-composite: add;
}