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: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Mar 2019 20:43:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-477339747-1553719408-sysbot+gh@w3.org>
It seems simpler (and more flexible) to just add an optional third param as the "ideal length" to `repeat()`, like so:
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:
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

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