Bug 230689 - [css-position-sticky] scrollIntoView should not take into account sticky positioning offsets
Summary: [css-position-sticky] scrollIntoView should not take into account sticky posi...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Martin Robinson
URL:
Keywords: InRadar
Depends on: 234844
Blocks: 228989
  Show dependency treegraph
 
Reported: 2021-09-23 06:57 PDT by Martin Robinson
Modified: 2022-01-04 07:47 PST (History)
9 users (show)

See Also:


Attachments
Patch (5.87 KB, patch)
2021-09-27 01:51 PDT, Martin Robinson
no flags Details | Formatted Diff | Diff
Patch (7.24 KB, patch)
2021-09-28 05:30 PDT, Martin Robinson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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