CSS scroll-initial-target Property Reference

The CSS scroll-initial-target property is a experimental property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

CSS scroll-initial-target Property Reference

The CSS scroll-initial-target property is a experimental property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

scroll-initial-target overview

The CSS scroll-initial-target property is a experimental property in CSS Scroll Snap. 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-initial-target formal syntax
FieldValue
Formal syntaxnone | nearest
Initial valuenone
Applies toallElements
InheritedNo
Percentagesno
Computed valuetheSpecifiedKeyword
Animation typenotAnimatable
MedianoPracticalMedia
Specification groupCSS Scroll Snap
StatusExperimental

Practical examples

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

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

Description

The CSS scroll-initial-target property is a experimental property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: scroll-initial-target
  2. MDN: CSS Properties Reference

Similar or alternative tools

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