CSS scroll-behavior Property Reference

The CSS scroll-behavior property is a standard property in CSS Overflow. Review its formal syntax, computed behavior, and practical declarations.

CSS scroll-behavior Property Reference

The CSS scroll-behavior property is a standard property in CSS Overflow. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

scroll-behavior overview

The CSS scroll-behavior property is a standard property in CSS Overflow. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

scroll-behavior formal syntax
FieldValue
Formal syntaxauto | smooth
Initial valueauto
Applies toscrollingBoxes
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typenotAnimatable
Mediavisual
Specification groupCSS Overflow
StatusStandard

Practical examples

These declarations demonstrate valid ways to set scroll-behavior. The initial and inherit global keywords remain available even when a property-specific value is preferable.

scroll-behavior live example
CSS .reset-example { scroll-behavior: initial; } .inherit-example { scroll-behavior: inherit; } @supports (scroll-behavior: initial) { .supported { scroll-behavior: initial; } }

Description

The CSS scroll-behavior property is a standard property in CSS Overflow. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: scroll-behavior
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies