monks/background_clip

The background-clip CSS property sets whether an element’s background extends underneath its border box, padding box, or content box.

Values

pub const border: #(String, String)

border value of background-clip

pub const border_box: #(String, String)
  • : The background extends to the outside edge of the border (but underneath the border in z-ordering).
pub const content_box: #(String, String)
  • : The background is painted within (clipped to) the content box.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const padding_box: #(String, String)
  • : The background extends to the outside edge of the padding. No background is drawn beneath the border.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for background-clip

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const text: #(String, String)
  • : The background is painted within (clipped to) the foreground text.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document