Re: [csswg-drafts] [css-anchor-position-1] Clarify how anchor-scope works with display:contents (#12783)

Per our resolution in #10325, everything in this spec operates on the flat tree (this is specified in the Values section of the intro).

That still leaves the question of elements vs boxes for anchor-scope. I'm inclined to say it cares about element relationships. We don't want, say, a top layer element to escape the anchor-scope of its parent just because top-layers are reparented in the box tree; this is somewhat necessary to make sure that popovers can reuse the same anchor-name in repeated components.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12783#issuecomment-3286961703 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 September 2025 22:00:35 UTC