NEW 295003
[css-anchor-position-1] Scrolling anchor doesn't trigger fallback when anchored box's containing block is the scroller
https://bugs.webkit.org/show_bug.cgi?id=295003
Summary [css-anchor-position-1] Scrolling anchor doesn't trigger fallback when anchor...
fantasai
Reported 2025-06-25 19:09:24 PDT
Overview: In cases where the containing block of an anchored box is a scroll container that also contains the anchor, we are not triggering fallback as we scroll the box into to the edge of the containing block. WPTs assume that this is the required behavior, however. Affected WPT Tests: http://wpt.live/css/css-anchor-position/ * anchor-scroll-position-try-* * position-area-scrolling-00[567] * position-try-fallbacks-003 Specification Notes: It's not 100% clear what the correct behavior is, i.e. whether the anchored box is contained by the scroll container's outer padding edge, or by its inner (scrollable) padding edge. On the root element, only fixed-positioned boxes are contained by the scrollport edge; absolutely-positioned boxes are contained by the scrollable area (roughly speaking). So this might need some investigation.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-06-25 19:09:31 PDT
fantasai
Comment 2 2025-07-10 23:26:28 PDT
Discussed this with Tab, we agree that the tests where the containing block is the scroller are wrong -- scrolling these should not trigger fallback. But for the tests where the containing block is an ancestor of the scroller, those should trigger fallback.
Note You need to log in before you can comment on or make changes to this bug.