-ms-scroll-snap-type

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

 

The -ms-scroll-snap-type CSS property is a Microsoft extension that specifies what type of snap-point should be used for the current element.

Initial valuenone
Applies tonon-replaced block-level elements and non-replaced inline-block elements
Inheritedno
Mediainteractive
Computed valueas specified
Animation typediscrete
Canonical orderthe unique non-ambiguous order defined by the formal grammar

Syntax

Values

none

Initial value. Panning and scrolling are unaffected by any defined snap-points. Touch flicks will result in normal inertia.

proximity

When normal inertia would leave content near a snap point, inertia is adjusted to land exactly on the snap point. However, it is still possible to land between snap points.

mandatory

Inertia is adjusted to ensure content always lands on a snap point.

Formal syntax

  none | proximity | mandatory

Specifications

Not part of any specification.

Remarks

This property requires Windows 8 or later.

This property has no effect on non-scrollable elements.

Starting with Windows 8.1, this property is also supported for mouse, keyboard, and touchpad interaction.

Document Tags and Contributors

Contributors to this page: jameshkramer
Last updated by: jameshkramer,