monks/mask

The mask CSS shorthand property hides an element (partially or fully) by masking or clipping a specified area of the image. It is a shorthand for all the mask-* properties. The property accepts one or more comma-separated values, where each value corresponds to a <mask-layer>.

Values

pub const add: #(String, String)

add value of mask

pub const alpha: #(String, String)

alpha value of mask

pub const auto_: #(String, String)

auto value of mask

pub const border_box: #(String, String)

border-box value of mask

pub const bottom: #(String, String)

bottom value of mask

pub const center: #(String, String)

center value of mask

pub const circle: #(String, String)

circle value of mask

pub const closest_corner: #(String, String)

closest-corner value of mask

pub const closest_side: #(String, String)

closest-side value of mask

pub const contain: #(String, String)

contain value of mask

pub const content_box: #(String, String)

content-box value of mask

pub const cover: #(String, String)

cover value of mask

pub const ellipse: #(String, String)

ellipse value of mask

pub const exclude: #(String, String)

exclude value of mask

pub const farthest_corner: #(String, String)

farthest-corner value of mask

pub const farthest_side: #(String, String)

farthest-side value of mask

pub const fill_box: #(String, String)

fill-box value of mask

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

intersect value of mask

pub const left: #(String, String)

left value of mask

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

length value of mask

pub const luminance: #(String, String)

luminance value of mask

pub const margin_box: #(String, String)

margin-box value of mask

pub const match_source: #(String, String)

match-source value of mask

pub const no_clip: #(String, String)

no-clip value of mask

pub const no_repeat: #(String, String)

no-repeat value of mask

pub const none: #(String, String)

none value of mask

pub const padding_box: #(String, String)

padding-box value of mask

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for mask

pub const repeat: #(String, String)

repeat value of mask

pub const repeat_x: #(String, String)

repeat-x value of mask

pub const repeat_y: #(String, String)

repeat-y value of mask

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

right value of mask

pub const round: #(String, String)

round value of mask

pub const space: #(String, String)

space value of mask

pub const stroke_box: #(String, String)

stroke-box value of mask

pub const subtract: #(String, String)

subtract value of mask

pub const top: #(String, String)

top value of mask

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

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

pub const view_box: #(String, String)

view-box value of mask

Search Document