https://www.w3.org/TR/css-position-3/#stickypos-scroll reads: 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 means that scrollIntoView should not take into account sticky positioning offsets when choosing a rectangle to scroll to.
Created attachment 439333 [details] Patch
Created attachment 439461 [details] Patch
<rdar://problem/83717334>
Committed r283546 (242511@main): <https://commits.webkit.org/242511@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 439461 [details].
Re-opened since this is blocked by bug 234844