Bug 230689

Summary: [css-position-sticky] scrollIntoView should not take into account sticky positioning offsets
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: CSSAssignee: Martin Robinson <mrobinson>
Status: REOPENED ---    
Severity: Normal CC: changseok, commit-queue, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=234212
Bug Depends on: 234844    
Bug Blocks: 228989    
Attachments:
Description Flags
Patch
none
Patch none

Description Martin Robinson 2021-09-23 06:57:22 PDT
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.
Comment 1 Martin Robinson 2021-09-27 01:51:00 PDT
Created attachment 439333 [details]
Patch
Comment 2 Martin Robinson 2021-09-28 05:30:35 PDT
Created attachment 439461 [details]
Patch
Comment 3 Radar WebKit Bug Importer 2021-09-30 06:58:16 PDT
<rdar://problem/83717334>
Comment 4 EWS 2021-10-05 05:10:08 PDT
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].
Comment 5 WebKit Commit Bot 2022-01-04 07:47:35 PST
Re-opened since this is blocked by bug 234844