The mask-type CSS property 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
Indicates that the luminance values of the mask should be used.
Indicates that the alpha values of the mask should be used.