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

It seems simpler (and more flexible) to just add an optional third param as the "ideal length" to `repeat()`, like so:
```css
repeat(auto-fit/fill, <track-list>, <fixed-breadth>);
```
`<fixed-breadth>` would be used for calculating the number of tracks in [ยง7.2.3.2](https://drafts.csswg.org/css-grid/#auto-repeat). `<track-list>` would be used everywhere else.  So your example would be solved by:
```css
repeat(auto-fill, 1fr, 100px);
```
(Assuming you want an `auto` track min-sizing function.)


-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3767#issuecomment-477339747 using your GitHub account

Received on Wednesday, 27 March 2019 20:43:30 UTC