-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[css-grid-3] masonry-auto-flow has suprising default #9988
Comments
Having a stable layout that isn't completely rearranged when some item changes size. Seems useful to me. |
Its bad for accessibility however - as it pulls things into a weird ordering. If things are mostly the same size grid should suffice, or if its about small reordering errors, then the reorder-threshold property should suffice. |
It doesn't seem a weird ordering to me. It obviously has the gotcha that it can fill the columns at very different paces, but this doesn't make it weird, and it isn't a big deal if e.g. you have gazillions of contents available to lazy load whenever the user reaches the end of the shortest column. In fact, even though |
Re: (On the other hand, as noted elsewhere, using |
We updated the default and dropped |
https://drafts.csswg.org/css-grid-3/#masonry-auto-flow
masonry-auto-flow has the
pack
default which will explicitly pull items out of order viadefinite-first
(I believe). This is suprising! (Alsodefinite-first
isn't really defined).At the very least this should be
ordered
by default, but likely without good justification thedefinite-first
concept should be removed.Additionally use-cases for
masonry-auto-flow: next
would be good, I personally haven't seen web developers ask for this behaviour - likelynext
could be dropped as well.The text was updated successfully, but these errors were encountered: