Re: [csswg-drafts] [css-grid][css-flexbox] Pinterest/Masonry style layout support (#945)

> I believe that [this comment](945#issuecomment-277974261) is underrated in this thread. I can't help seeing that the behavior of the Packery algorithm is to the usual behavior of `float`ing boxes as `dense` auto placement is to default (sparse) auto placement in Grid layout. Maybe [css-floats-3] could also be considered a possible approach for this?
I think you have a good point.
Currently, float is becoming old and flexbox allow a lot of things to be done, but this masonry layout is lacking in both.
I drawn this to show what people are forgetting about the masonry layout. It's not just a way to automatically place boxes or images where it fit. I think the best way to see that is that it put the following image at the highest point it can get in a column.
![masonry](https://user-images.githubusercontent.com/11185348/78843087-d2337400-79cf-11ea-8865-5d2d19bc5292.png)
What I want to show you there is that box #4 is not necessarily on the left. It's where you get the highest point like I said. Sometimes you can have lot of small images in a row, so making it left to right can't work all the time. Masonry is left to right like always, but in a way it's easier for the user to access informations.



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

Received on Wednesday, 8 April 2020 23:35:28 UTC