NEW309239
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
Radar WebKit Bug Importer
Comment 1 2026-03-12 01:37:11 PDT
Note You need to log in before you can comment on or make changes to this bug.