Re: [csswg-drafts] [css-anchor-position] Allow a positioned el's containing block to be the anchor (#11769)

> The proposal (as I understand it) would mean the same geometry for both examples (left/right/etc tracking having zero size).

Ah sorry, I was incorrect, and you are correct on this.

> So I think you are asking for the anchored element to escape the default containing-block

Isn't this already the behavior? If it gets placed within a position grid row or column with a zero size, the positioned element doesn't get clipped. 

> A potential solution might be to allow abspos to skip containing blocks where there isn't a viable anchor within scope for example.

Interesting- so potentially, if an abspos element with a default anchor can't find an anchor within its containing block, it would look higher in the tree to find a containing block, and then its parent would become a valid anchor as a descendant of the altered containing block? This could provide better behavior potentially, although I'm hesitant to introduce more complexity into the containing block algorithm.


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


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

Received on Tuesday, 1 April 2025 18:31:58 UTC