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

@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