monks/overscroll_behavior_block

The overscroll-behavior-block CSS property sets the browser’s behavior when the block direction boundary of a scrolling area is reached.

See {{cssxref(“overscroll-behavior”)}} for a full explanation.

Values

pub const auto_: #(String, String)
  • : The default scroll overflow behavior occurs as normal.
pub const contain: #(String, String)
  • : Default scroll overflow behavior (e.g., “bounce” effects) is observed inside the element where this value is set. However, no {{Glossary(“Scroll_chaining”, “scroll chaining”)}} occurs on neighboring scrolling areas; the underlying elements will not scroll. The contain value disables native browser navigation, including the vertical pull-to-refresh gesture and horizontal swipe navigation.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : No scroll chaining occurs to neighboring scrolling areas, and default scroll overflow behavior is prevented.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for overscroll-behavior-block

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

Search Document