The mask-border-mode CSS property indicates whether the value for mask-border-source is treated as luminance mask or alpha mask.
CSS
JS
object.style.maskBorderMode = "value";
Values
<'mask-border-mode'> = luminance | alpha
luminance
Indicates that the luminance values of the mask should be used.
alpha
Indicates that the alpha values of the mask should be used.
Initial
alpha
luminance
JS
Internal
External