monks/mask_type

The mask-type CSS property applies to the SVG {{svgElement(“mask”)}} element. It defines whether to use the luminance (brightness) or alpha (transparency) content of the mask. This property may be overridden by the {{cssxref(“mask-mode”)}} property. The mask-type property has no effect on image or gradient masks.

Values

pub const alpha: #(String, String)
  • : Indicates that the alpha (transparency) values of the <mask> should be used.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const luminance: #(String, String)
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for mask-type

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-type. It will be wrapped in var() and have -- prepended.

Search Document