NEW 295011
[css-anchor-position-1] position-visibility:anchors-visible does not work correctly for chained anchors
https://bugs.webkit.org/show_bug.cgi?id=295011
Summary [css-anchor-position-1] position-visibility:anchors-visible does not work cor...
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
Note You need to log in before you can comment on or make changes to this bug.