Working Draft · css-scroll-anchoring

CSS Scroll Anchoring

1 property defined by this specification, all known to at least one browser .

The feature in detail

overflow-anchor

Property Baseline: newly availablesince September 2026 Modern CSS: overflow-anchor

MDN The overflow-anchor CSS property provides a way to opt out of the browser's scroll anchoring behavior, which adjusts scroll position to minimize content shifts.

Live preview Example from MDN
.whole-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#example-element {
  height: 100%;
  border: 2px dashed dodgerblue;
  padding: 0.75em;
  text-align: left;
  overflow: scroll;
}

#playback {
  font-size: 1em;
  width: 10em;
  height: 4em;
  font-weight: bold;
  margin: 1em auto;
  background-color: aliceblue;
  border: solid 2px dodgerblue;
  border-radius: 5px;
}

#playback:hover {
  border-color: lightseagreen;
}

#playback:active {
  filter: brightness(0.9);
}

Syntax

auto | none

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
auto
Applies to
all elements
Inherited
no
Percentages
n/a
Computed value
specified keyword
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting overflow-anchor
Chrome 56
Edge 79
Firefox 66
Safari 27
Chrome Android 56
Safari iOS 27

First version with support, from MDN browser-compat-data.