monks/mask_mode
The mask-mode CSS property is set on the element being masked. It sets whether the mask reference defined by the {{cssxref(“mask-image”)}} is treated as a luminance or alpha mask.
Values
pub const alpha: #(String, String)
- : Indicates that the alpha (transparency) values of the mask image should be used.
pub const luminance: #(String, String)
- : Indicates that the luminance (brightness) values of the mask image should be used.
pub const match_source: #(String, String)
- : Indicates that the type of mask is determined by the source. This is the default property value. - If the {{cssxref(“mask-image”)}} references an SVG {{svgelement(“mask”)}}, its {{cssxref(“mask-type”)}} property value is used, or it’s {{SVGAttr(“mask-type”)}} attribute, if present. If neither is explicitly set, this value defaults to
luminance. - If the mask image source is an {{cssxref(“image”)}} or a {{cssxref(“gradient”)}}, thealphavalues of the mask image are used.
pub const revert_layer: #(String, String)