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 - 86: Supported
- 87: Supported
Firefox
- 2 - 65: Not supported
- 66 - 83: Supported
- 84: Supported
- 85 - 86: Supported
Chrome
- 4 - 55: Not supported
- 56 - 86: Supported
- 87: Supported
- 88 - 90: Supported
Safari
- 3.1 - 13.1: Not supported
- 14: Not supported
- TP: Not supported
Opera
- 9 - 42: Not supported
- 43 - 71: Supported
- 72: Supported
iOS Safari
- 3.2 - 13.7: Not supported
- 14: Not supported
Opera Mini
- all: Not supported
Android Browser
- 2.1 - 4.4.4: Not supported
- 81: Supported
Opera Mobile
- 10 - 12.1: Not supported
- 59: Supported
Chrome for Android
- 87: Supported
Firefox for Android
- 83: Not supported
UC Browser for Android
- 12.12: Not supported
Samsung Internet
- 4: Not supported
- 5 - 12.0: Supported
- 13.0: Supported
QQ Browser
- 10.4: Not supported
Baidu Browser
- 7.12: Supported
KaiOS Browser
- 2.5: Not supported
- Resources:
- Google developers article
- Explainer