Bug 295002

Summary: [css-anchor-position-1] Scroll adjustment not applied for position:fixed anchored boxes
Product: WebKit Reporter: fantasai <fantasai.bugs>
Component: Layout and RenderingAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, kiet.ho, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 289743, 291856    

fantasai
Reported 2025-06-25 18:55:38 PDT
Overview: We aren't applying scroll adjustments to position:fixed boxes, so they are separating from their anchors when the page is scrolled. Affected WPT Tests: * http://wpt.live/css/css-anchor-position/anchor-scroll-fixedpos.html This is a basic test for the functionality. * http://wpt.live/css/css-anchor-position/anchor-scroll-006.html This checks tracking for anchors in descendant scrollers. * http://wpt.live/css/css-anchor-position/anchor-scroll-007.html This checks tracking when multiple anchors are involved. * http://wpt.live/css/css-anchor-position/position-try-switch-to-fixed-anchor.html This checks the behavior when applied via position-try. Missing Tests: * Need to add a test for `position-area`. * Need to add a test to check that position-try fallbacks are triggered.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-06-25 18:55:54 PDT
Antti Koivisto
Comment 2 2025-06-27 03:44:52 PDT
css/css-anchor-position/anchor-scroll-006.html is about per-axis scroll adjustments. css/css-anchor-position/anchor-scroll-007.html tests the "or" part of the statement "abspos has an anchor reference to its default anchor box or at least to something in the same scrolling context" css/css-anchor-position/position-try-switch-to-fixed-anchor.html requires position-try scrolling support in general
Antti Koivisto
Comment 3 2025-06-27 04:01:59 PDT
EWS
Comment 4 2025-06-30 10:57:12 PDT
Committed 296811@main (de4580fe7eee): <https://commits.webkit.org/296811@main> Reviewed commits have been landed. Closing PR #47291 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.