W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-grid-layout] [css3-layout] default layout of children

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 24 Feb 2012 21:35:33 +0100
Message-ID: <4F47F495.2000907@inkedblade.net>
To: www-style@w3.org
On 02/24/2012 01:50 AM, Phil Cupp wrote:
> I'm just saying that items that have the same Grid position overlap by design - it's not a problem to be solved.  However, I'm fine with defining better ways to resolve those positions automatically with the auto placement algorithm.  We can also consider making the auto placement algorithm on by default so that authors don’t experience "data loss" after setting display to grid.

I think I'd prefer that. :) It also means that this:
   display: grid;
   grid-columns: (1fr)[3];
automatically arranges all the children into a grid. Which makes a lot of
sense to me.

I'm a little concerned in tying the completion of grid to the adoption of
auto placement, though, especially since you've noted you're not 100% happy
with it yet. Perhaps the default "on" behavior could be simplified to just
put things in new rows, one item per grid slot, rather than trying to find
holes in the existing grid? A more sophisticated algorithm that looks for
holes could be switched on explicitly with 'grid-auto-flow' later. I think
that would be easier for authors to understand as well: the placement of
un-positioned items is more predictable that way.

~fantasai
Received on Saturday, 25 February 2012 06:12:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:51 GMT