W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: [css-flexbox] "Masonry" effect

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 9 Jun 2014 09:21:45 -0700
Message-ID: <CAAWBYDAcZ_Rd5f=jwNoz7tu0pBLiroYuWPEx4_XOVK=YgBRUeg@mail.gmail.com>
To: Shane Hudson <Shane@shanehudson.net>
Cc: JK <jkxxx@centrum.cz>, www-style list <www-style@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC