CSS · Properties — CSS Masking

mask-border-mode

The CSS mask-border-mode property. Initial value: alpha. Not inherited.

Syntax
mask-border-mode: luminance | alpha

Example

Try it

Notes

Media: visual. Applies to: allElementsSVGContainerElements. Computed value: asSpecified.

More in this group

clip-path clip-rule mask mask-border mask-border-outset mask-border-repeat mask-border-slice mask-border-source

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course