For the purposes of any operation targetting the scroll position of a sticky positioned element (or one of its descendants), the sticky positioned element must be considered to be positioned at its initial (non-offsetted) position. This was discussed in

Status in Chromium

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Discussion occurred in this csswg issue:

Last updated on 2021-07-27