Re: [css-grid] Updates and Issues

On Tue, Jan 13, 2015 at 6:47 AM, Sergio Villar Senin <svillar@igalia.com> wrote:
> On 12/01/15 21:49, fantasai wrote:
>> Repeat-to-fill
>>   http://lists.w3.org/Archives/Public/www-style/2014Oct/0108.html
>>   A very common grid-based layout (used for e.g. online catalogs,
>>   photo albums, article summaries, etc) is to have as many columns
>>   as there is space. Right now the grid spec only allows fixed
>>   repetitions; we propose to add a repeat-to-fill function, which
>>   basically does multi-col arithmetic against the grid container's
>>   size.
>>
>>   DISCUSS: Adding repeat(auto, <track-list>)?
>
> I'm a bit skeptic about this, mainly because I see many potential issues
> with content-sized tracks and flex tracks. The whole track sizing
> algorithm is full of stuff to allow tracks to grow to their limits and
> even beyond with special cases for definite/indefinite sizes. Having
> something like that will likely complicate the algorithm a lot. Apart
> from that how do you see it working with flex tracks for example, will
> we disallow them to grow to create more tracks (then they won't actually
> work as flex tracks)?

Check the actual spec text - repeat(auto) requires the track-list to
contain only length/percentage, none of the other <track-size> values
are allowed.  This is precisely to avoid the confusion that you're
talking about. ^_^

~TJ

Received on Tuesday, 13 January 2015 21:07:35 UTC