monks/scroll_padding

The scroll-padding shorthand property sets scroll padding on all sides of an element at once, much like the {{cssxref(“padding”)}} property does for padding on an element.

Values

pub const auto_: #(String, String)
  • : The offset is determined by the user agent. This will generally be 0px, but the user agent is free to detect and do something else if a non-zero value is more appropriate.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of scroll-padding

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

Enter a raw string value for scroll-padding

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 scroll-padding. It will be wrapped in var() and have -- prepended.

Search Document