coderef

overflow-anchorBaseline · Newly available

The overflow-anchor CSS property sets an element as a possible scroll anchor, reducing unintended scrolling when document changes occur above the current scrollport. This is enabled by default where supported.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Sep 14, 2026.

Browser support

DesktopChrome
1–55Not supported
56+Supportedsince Jan 25, 2017
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–65Not supported
66+Supportedsince Mar 19, 2019
Current: 157
Safari
1–26.6Not supported
27+Supportedsince Sep 14, 2026
Current: 27
MobileChrome Android
18–55Not supported
56+Supportedsince Feb 1, 2017
Current: 155
Firefox Android
4–65Not supported
66+Supportedsince Mar 19, 2019
Current: 157
Safari iOS
1–26.6Not supported
27+Supportedsince Sep 14, 2026
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Sep 14, 2026. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN: overflow-anchor.

Feature detection

CSS · check before using
@supports (overflow-anchor: initial) {
  /* styles that rely on overflow-anchor */
}

/* or in JavaScript */
if (CSS.supports("overflow-anchor", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (3). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
overflow-anchor56796627566627
overflow-anchor.auto56796627566627
overflow-anchor.none56796627566627