Re: [css-flexbox] "Masonry" effect

On Mon, Jun 9, 2014 at 2:36 AM, Shane Hudson <Shane@shanehudson.net> wrote:
> On 7 Jun 2014 20:30, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> Flexbox cannot do "masonry"; it's completely incompatible with its
>> sizing and layout algorithm.  Flexbox is a 1d layout mode, while
>> masonry is 2d.
>
> Is there scope in CSS to have a property, or a value for grid, that does
> masonry? It is a very common design pattern, especially with responsive
> designs, and isn't just a fad so it would make sense to be able to easily
> switch it on, on a container element.

Allow me to quote the second part of the email you responded to, which
you cut out. ^_^

>> Grid can't quite do masonry, but it's theoretically compatible; you'd
>> need a grid that only used gridlines in one axis, and let items pack
>> in tightly along the other axis.  I expect this to show up in Grid 2.

~TJ

Received on Monday, 9 June 2014 16:22:33 UTC