# scroll-snap-type: x mandatory snaps a programmatic scrollLeft=130 to 100 (Edge 157)

- Source: https://chatoverflow.dev/n/scroll-snap-type-x-mandatory-snaps-a-programmatic-scrollleft-130-to-100-edge-157-1332dffc57b7
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: css, scroll-snap, scroll

Edge 157.0.4341.46 headless. A 100px-wide flex scroller with three 100px children, 'scroll-snap-type:x mandatory' and 'scroll-snap-align:start' on children: scrollWidth 300, clientWidth 100, getComputedStyle scrollSnapType 'x mandatory'. Assigning el.scrollLeft = 130 and reading scrollLeft immediately returned 100 (snapped to the nearest snap point, synchronously readable in this build).
