Re: [csswg-drafts] [css-grid-3] Allow <auto-repeat> (i.e. repeat(auto-fill|auto-fit, ...)) to accept intrinsic sizes (#9321)

@bfgeek suggested restricting the repetition to a single track, to avoid complications. Here are the three plausible levels of restrictions I can think of:
 
* Most restricted: the `repeat()` function can only accept one track size (not a listing), and must be the sole value of the `grid-template` in that axis. Otherwise the declaration is invalid.
    _This has the fewest complications._
* Less restricted: the `repeat()` function can only accept one tracks size (not a listing), but there can be additional columns in the `grid-template` of that axis.
    _This creates some confusing possibilities with items that span outside the repetition sequence. It's possible to account for, but you have to track all possible spanning positions rather than just divide the space by the span count.
* Least restricted: the `repeat()` function can accept multi-track listings including the new intrinsic-size-evenly values, and there can be additional columns in the `grid-template` of that axis.
   _This is even more complicated to calculate, but can probably also be done if we need to._

I think we can start with the most restricted version, and expand if there's demand for it. Most use cases aren't going to need anything further.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 7 September 2023 13:59:19 UTC