WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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...
fantasai
Reported
2025-06-25 20:21:47 PDT
Overview: We have some errors in how we invalidate for position-visibility, in response to dynamic changes and/or chained anchor relationships. Affected Tests: *
https://wpt.live/css/css-anchor-position/position-visibility-anchors-visible-chained-001.html
*
https://wpt.live/css/css-anchor-position/position-visibility-anchors-visible-chained-002.html
*
https://wpt.live/css/css-anchor-position/position-visibility-anchors-visible-chained-003.html
*
https://wpt.live/css/css-anchor-position/position-visibility-anchors-visible-chained-004html
*
http://wpt.live/css/css-anchor-position/position-visibility-anchors-visible-change-anchor.html
Specification Link:
https://www.w3.org/TR/css-anchor-position/#position-visibility
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-06-25 20:21:58 PDT
<
rdar://problem/154354453
>
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
Pull request:
https://github.com/WebKit/WebKit/pull/49529
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug