Bug 295011

Summary: [css-anchor-position-1] position-visibility:anchors-visible does not work correctly for chained anchors
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    

Attachments
Radar WebKit Bug Importer
Comment 1 2025-06-25 20:21:58 PDT
Kiet Ho
Comment 2 2025-08-07 18:15:58 PDT
Take position-visibility-anchors-visible-chained-001.html for example, the DOM tree looks like this: -- #scroll-container |-- #anchor1 (anchor named --a1) |-- #chained (anchorpos to --a1) |-- #anchor2 (anchor named --a2) |-- #target (anchorpos to --a2) So the anchor chain is #target -> #anchor2 which is child of #chained -> #anchor1 297286@main implements chained scroll adjustment but only when the element is both an anchor and anchorpos. In the above case, the anchor is children of anchorpos, so that change doesn't adjust scroll.
Antti Koivisto
Comment 3 2025-08-18 03:59:26 PDT
EWS
Comment 4 2025-08-18 05:42:22 PDT
Committed 298835@main (ed2498e01831): <https://commits.webkit.org/298835@main> Reviewed commits have been landed. Closing PR #49529 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.