Re: [csswg-drafts] [css-anchor-1][css-position] Add the “centering” behavior which is now defined as an example in the specs as something built-in (#8979)

Discussed with @tabatkins offline.

Unfortunately, the way how `anchor-center` is currently specified doesn't work well if the anchor is initially out of the containing block (but can be scrolled back in), in which case the IMCB is collapsed. The closest idea I can get is to ignore insets when aligning the element, but check IMCB overflow only until position fallback. And this idea doesn't achieve the "shift the element a little to keep it within containing block" behavior that the current spec tries to achieve.

More work is needed.

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


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

Received on Tuesday, 22 August 2023 06:08:37 UTC