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 inherit: #(String, String)
pub const initial: #(String, String)
pub const luminance: #(String, String)
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”)}}, the alpha values of the mask image are used.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for mask-mode

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for mask-mode. It will be wrapped in var() and have -- prepended.

Search Document