The mask-border-mode property for CSS indicates whether the <image> value for mask-border-source is treated as luminance mask or alpha mask.
object.style.maskBorderMode = "value";
<'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.