RESOLVED FIXED300837
[css-anchor-position-1] Enable scrollable overflow of scrollable containing blocks by default
https://bugs.webkit.org/show_bug.cgi?id=300837
Summary [css-anchor-position-1] Enable scrollable overflow of scrollable containing b...
fantasai
Reported 2025-10-15 15:07:47 PDT
The default alignment safety for absolutely positioned boxes pulls them away from overflow the containing block edge. This is good in general, but when the containing block is a scroll container, it's safe to overflow into the scrollable overflow region. Per CSSWG resolution, we should allow overflow into these regions rather than trying to strictly contain the abspos: https://github.com/w3c/csswg-drafts/issues/12106
Attachments
Radar WebKit Bug Importer
Comment 1 2025-10-15 15:07:54 PDT
Ehren
Comment 2 2025-10-19 03:22:22 PDT
Is this a duplicate of the following? https://bugs.webkit.org/show_bug.cgi?id=299950 If so, this has been fixed in Safari TP 230. If I've misunderstood your bug report, then please ignore this!
fantasai
Comment 3 2025-10-24 12:14:22 PDT
That was a quick fix just for the initial containing block to handle the most common broken case, this is a more general bug for a proper fix for the general case. :)
fantasai
Comment 4 2025-10-24 12:33:17 PDT
fantasai
Comment 5 2025-10-24 12:41:28 PDT
There's also two things interacting here: - What's the size of the containing block? This is https://bugs.webkit.org/show_bug.cgi?id=291864 which also needs to be fixed. - What happens when we overflow the containing block. That's this bug. Both of them mitigate situations where the box can overlap the anchor, but they are slightly different in their effects... this one is the easier one to fix. :)
EWS
Comment 6 2025-10-28 14:42:55 PDT
Committed 302259@main (c16b70c96c64): <https://commits.webkit.org/302259@main> Reviewed commits have been landed. Closing PR #52970 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.