monks/mask_image

The mask-image CSS property sets the image that is used as the mask layer for an element, hiding sections of the element on which the masking image is set based on the alpha channel of the mask image and, depending on the {{cssxref(“mask-mode”)}} property value, the luminance of the mask image’s colors.

Values

pub const bottom: #(String, String)

bottom value of mask-image

pub const center: #(String, String)

center value of mask-image

pub const circle: #(String, String)

circle value of mask-image

pub const closest_corner: #(String, String)

closest-corner value of mask-image

pub const closest_side: #(String, String)

closest-side value of mask-image

pub const contain: #(String, String)

contain value of mask-image

pub const cover: #(String, String)

cover value of mask-image

pub const ellipse: #(String, String)

ellipse value of mask-image

pub const farthest_corner: #(String, String)

farthest-corner value of mask-image

pub const farthest_side: #(String, String)

farthest-side value of mask-image

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)

left value of mask-image

pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of mask-image

pub const none: #(String, String)
  • : This keyword is interpreted as a transparent black image layer.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for mask-image

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)

right value of mask-image

pub const top: #(String, String)

top value of mask-image

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

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

Search Document