RESOLVED FIXED 295002
[css-anchor-position-1] Scroll adjustment not applied for position:fixed anchored boxes
https://bugs.webkit.org/show_bug.cgi?id=295002
Summary [css-anchor-position-1] Scroll adjustment not applied for position:fixed anch...
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.