monks/background_origin

The background-origin CSS property sets the background’s origin: from the border start, inside the border, or inside the padding.

Note that background-origin is ignored when {{cssxref(“background-attachment”)}} is fixed.

Values

pub const border_box: #(String, String)
  • : The background is positioned relative to the border box.
pub const content_box: #(String, String)
  • : The background is positioned relative to the content box.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const padding_box: #(String, String)
  • : The background is positioned relative to the padding box. Default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for background-origin

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

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

Search Document