W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-grid] Request: an easy way to set adjusted-to-fit repeated track sizes (#3767)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Mar 2019 21:08:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-477348344-1553720904-sysbot+gh@w3.org>
@MatsPalmgren That's definitely one idea: it allows you to still have the full flexibility of the `maxmin()` function and keywords, because you separate out the "how many columns" calculation from the "adjusting the final width" calculation.

To make that separation clearer, maybe the `<fixed-breadth>` parameter could be included as a function version of `auto-fit`/`-fill`:

```css
repeat(auto-fit(<fixed-breadth>), <track-list>);
repeat(auto-fill(<fixed-breadth>), <track-list>);

repeat(auto-fit(100px), 1fr);
   /* fit as many columns as would be possible at 100px width,
  then adjust each to equal width so long as none are less than min-content */
repeat(auto-fit(100px), minmax(0,1fr));
   /* ignore the min-content requirement to make them strictly equal */
```

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3767#issuecomment-477348344 using your GitHub account
Received on Wednesday, 27 March 2019 21:08:27 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:58 UTC