WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 301023
304551
CSS anchor positioning with a fixed-positioned anchored element works incorrectly in the top layer
https://bugs.webkit.org/show_bug.cgi?id=304551
Summary
CSS anchor positioning with a fixed-positioned anchored element works incorre...
Pavel Pomerantsev
Reported
2025-12-20 11:26:42 PST
Created
attachment 477806
[details]
Chrome (correct) and Safari (incorrect) layouts side by side An element is positioned incorrectly if all of the following are true: * It's anchor-positioned (has a `position-anchor` set to an existing element). * It has `position: fixed`. * Both the element and its anchor are in the top layer. See example with a modal dialog and a fullscreen element (both examples of top layer usage):
https://codepen.io/pavelp/pen/ByzBKrE
Compare layout in latest Chrome (appears to be correct) vs latest Safari TP (appears incorrect). Note: this may or may not be a duplicate of
https://bugs.webkit.org/show_bug.cgi?id=289743
. Top layer is mentioned there, but it looks like currently all the top-layer tests in
https://wpt.fyi/results/css/css-anchor-position?label=experimental&label=master&aligned
are passing in Safari TP, so this might be a case for which a web platform test doesn't exist yet.
Attachments
Chrome (correct) and Safari (incorrect) layouts side by side
(410.18 KB, image/png)
2025-12-20 11:26 PST
,
Pavel Pomerantsev
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-12-27 11:27:12 PST
<
rdar://problem/167239379
>
Kiet Ho
Comment 2
2026-04-02 17:43:53 PDT
Hello, thank you for the bug report including the repro. I'm currently looking at this issue, and it seems to be the same as
bug 301023
.
Kiet Ho
Comment 3
2026-04-10 11:18:43 PDT
I can confirm that this will be fixed by
bug 301023
. *** This bug has been marked as a duplicate of
bug 301023
***
Pavel Pomerantsev
Comment 4
2026-04-11 18:00:09 PDT
That’s great, thanks so much for fixing!
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