Re: [csswg-drafts] [css-anchor-position] Add containing block rules to acceptable elements in top layer (#11602)

Hmm, okay, these CB rules weren't super clear to me. In particular, if nothing in the top layer intentionally creates an abspos CB, the abspos then relies on the ICB - where in the stack does that live? It looks like impls either implicitly cause the topmost elements of each top layer to generate an abspos CB, preventing it from reaching the ICB unless it's in the root layer

Then the fixpos containing block (the viewport) appears to be wrapping the entire hierarchy, such that anything could potentially be an anchor. Then the layer order is all that matters; a fixpos element in the root layer gets painted before any top layers, so it can't refer to a top layer anchor, etc.

So I propose we adopt the following:

* Each top-layer element generates an abspos containing block implicitly.
* The viewport CB is a parent of all layer's CBs, root and tops.

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


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

Received on Thursday, 14 August 2025 18:42:36 UTC