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

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 UTC