W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: [css-grid] a few questions on auto-fill / auto-fit in the repeat() function

From: Mats Palmgren <mats@mozilla.com>
Date: Thu, 3 Dec 2015 00:39:36 +0100
To: www-style@w3.org
Cc: Daniel Holbert <dholbert@mozilla.com>
Message-ID: <565F8138.6010906@mozilla.com>

I have a few additional questions on auto-fill/fit:

4. How should a zero track size in the repeat() be handled?

<div style="display: grid;
             grid-template: repeat(auto-fill,0) / 10px;
             width: 100px;">

Clearly it's not possible to fill 100px with zero-sized tracks...

5. ... except if you also have a non-zero 'grid-gap', so with
grid-gap:20px you can fill the above grid with 6 tracks, resulting
in 5 adjacent grid gaps.  How should these two cases be handled?

6. In general, "positive integer" means one or more.  But it seems
    undesirable to generate a track if it causes overflow so I'm really
    not sure what you mean by that term here.
    Please clarify if 'auto-fill' can result in zero tracks or if it
    always generates at least one track when the size is definite.

7. When the size is indefinite, and the min size is definite but zero,
    how many tracks should be generated?  for example:

<div style="display: grid;
             grid-template: repeat(auto-fill,10px) / 10px;
             min-width: 0;">

Received on Wednesday, 2 December 2015 23:40:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:58 UTC