-
Notifications
You must be signed in to change notification settings - Fork 667
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
[css-align][css-flexbox][css-grid] Difference between overflow behaviour when aligning and justifying to start and end in flexbox and grid #751
Comments
I believe the reason the Grid example doesn't allow scrolling is this:
|
Thanks - that makes sense. So is the flexbox behaviour actually a bug or is this the same issue? |
This is a case for using So in Flexbox, In Box Alignment, we've got two solutions we're tossing around: (It's a bit unclear atm if #1 is implementable; if not it'll behave as "unsafe".) |
Oh, and, as Rachel points out here, the spec requires making the overflowing content visible when @rachelandrew Can you confirm if everything here looks good to you, or if you have some concerns that aren't addressed? :) |
Note: We did make some clarifications to the alignment+overflow section that Rachel linked to, hopefully that helps. |
I think the safe/unsafe handling would deal with the issue as raised so I don't have any other concerns :) |
Where a flex or grid container is smaller than the items inside, and has overflow auto or scroll set on it, items aligned/justified to
end
orflex-end
behave differently to those alignedstart
orflex-start
. The original post from an author who asked me the question is here. I did a couple of tests here, and found the same behaviour in grid with justify-content at least.This seems to relate to this open Chrome issue, although the behaviour is the same in Firefox.
The relevant part of the spec is here, so the scrolling to the end of the container seems correct, but I think that most authors would expect the overflow to scroll, just from the other direction.
I'm not clear from the spec whether this is a bug in implementations, or is desired behaviour for a reason I don't fully understand, either way it could be clarified perhaps with an example (which I'd be happy to put together once I understand the issue fully myself!)
The text was updated successfully, but these errors were encountered: