WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
309239
anchor-scope not working (with display: contents?)
https://bugs.webkit.org/show_bug.cgi?id=309239
Summary
anchor-scope not working (with display: contents?)
Gunnar Bittersmann
Reported
2026-03-05 00:36:42 PST
Hi, this grid layout works fine in Firefox ans Chromium browsers:
https://codepen.io/gunnarbittersmann/pen/OPRyObK
The headings should be positioned above the first item of their section. In Safari (26.3 on macOS and iOS), all headings are stacked onto each other at the position of the last section heading, as it would look like in other browser without `anchor-scope` being set. May it be that `anchor-scope` doesn’t work well with `display: contents` on the same element?
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-03-12 01:37:11 PDT
<
rdar://problem/172355302
>
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