-
Notifications
You must be signed in to change notification settings - Fork 719
[css-anchor-position] should alignment safety consider the containing block? #10316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Proposal here is:
|
+1 to this proposal. There's definitely still use-cases for shifting within the IMCB, but I agree that most of the time it's the CB you're concerned with. |
I suspect that anything changing default alignment won't be web-compatible given how long folks have been relying on abspos layout. |
Yeah, I'm definitely comfortable with keeping the legacy behavior (aka skipping |
The CSS Working Group just discussed
The full IRC log of that discussion |
… containing block for alignment safety. #10316
Alignment has a concept of "safety", which is, we try to bias alignment in a direction that won't result in clipping the content. For
unsafe
centering, we don't care; but forsafe
centering we overflow away from the unscrollable region.For anchor positioning (and absolute positioning in general to be fair), there's two containers that are of interest: the inset-modified containing block, and the actual containing block.
Should the default behavior and/or the
safe
behavior of an overflowing alignment bias towards staying within the containing block if possible, before finally overflowing the end/end edges?The text was updated successfully, but these errors were encountered: