The mask-type property for CSS defines whether the content of the mask element is treated as as luminance mask or alpha mask.
object.style.maskType = "value";
<'mask-type'> = 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.