CSS overflow-anchor (Scroll Anchoring)
- WDChanges in DOM elements above the visible region of a scrolling box can result in the page moving while the user is in the middle of consuming the content.
By default, the value of overflow-anchor
is auto
, it can mitigate this jarring user experience by keeping track of the position of an anchor node and adjusting the scroll offset accordingly
IE
- 5.5 - 10: Not supported
- 11: Not supported
Edge
- 12 - 18: Not supported
- 79 - 100: Supported
- 101: Supported
Firefox
- 2 - 65: Not supported
- 66 - 99: Supported
- 100: Supported
- 101 - 102: Supported
Chrome
- 4 - 55: Not supported
- 56 - 100: Supported
- 101: Supported
- 102 - 104: Supported
Safari
- 3.1 - 15.3: Not supported
- 15.4: Not supported
- TP: Not supported
Opera
- 9 - 42: Not supported
- 43 - 85: Supported
- 86: Supported
- 87: Supported
Safari on iOS
- 3.2 - 15.3: Not supported
- 15.4: Not supported
Opera Mini
- all: Not supported
Android Browser
- 2.1 - 4.4.4: Not supported
- 101: Supported
Opera Mobile
- 10 - 12.1: Not supported
- 64: Supported
Chrome for Android
- 101: Supported
Firefox for Android
- 100: Supported
UC Browser for Android
- 12.12: Not supported
Samsung Internet
- 4: Not supported
- 5 - 15.0: Supported
- 16.0: Supported
QQ Browser
- 10.4: Not supported
Baidu Browser
- 7.12: Supported
KaiOS Browser
- 2.5: Not supported
- Resources:
- Google developers article
- Explainer