Bug 309239

Summary: anchor-scope not working (with display: contents?)
Product: WebKit Reporter: Gunnar Bittersmann <gunnar>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, fantasai.bugs, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 291856    

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.