monks/mask_composite

The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it.

Values

pub const add: #(String, String)
  • : The associated mask image is placed over all mask layers below it (with the corresponding compositing operators applied). This is the default value.
pub const exclude: #(String, String)
  • : The non-overlapping regions of the associated mask image and the mask layers below it, with their corresponding compositing operators applied, are combined.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const intersect: #(String, String)
  • : The parts of the associated mask image that overlap all composited mask layers below it replace those previously composited layers.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for mask-composite

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const subtract: #(String, String)
  • : The associated mask image is placed, where it falls outside of all mask layers below it (with the corresponding compositing operators applied).
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document