monks/mask_clip

The mask-clip CSS property determines the area which is affected by a mask. The painted content of an element must be restricted to this area.

Values

pub const border_box: #(String, String)
  • : The painted content is clipped to the border box.
pub const content_box: #(String, String)
  • : The painted content is clipped to the content box.
pub const fill_box: #(String, String)
  • : The painted content is clipped to the object bounding box.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const margin_box: #(String, String)

margin-box value of mask-clip

pub const no_clip: #(String, String)
  • : The painted content is not clipped.
pub const padding_box: #(String, String)
  • : The painted content is clipped to the padding box.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for mask-clip

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const stroke_box: #(String, String)
  • : The painted content is clipped to the stroke bounding box.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

pub const view_box: #(String, String)
  • : Uses the nearest SVG viewport as reference box. If a viewBox attribute is specified for the element creating the SVG viewport, the reference box is positioned at the origin of the coordinate system established by the viewBox attribute and the dimension of the reference box is set to the width and height values of the viewBox attribute.
Search Document