Re: [csswg-drafts] [css-grid-3] Repeat range (#9325)

The CSS Working Group just discussed `[css-grid-3] Repeat range`, and agreed to the following:

* `RESOLVED: Add two numbers to the repeat function that when used with one of the keywords define a range`

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> +1 to the proposal, and to making the keyword optional if numbers are given (defaulting to auto-fill)<br>
&lt;dael> fantasai: Another issue iank_ brought up is desire to have repetition, example 3 to 5 instead of exactly 5. Seemed useful for grid regardless of masonary. Opened issue to propse repeat syntax that covers a range. It would be autofill or autofit with one or two numbers. If two, first is min and second is max. If you only give one it's a max.<br>
&lt;dael> fantasai: One is a max is consistent with how we do multicol. And consistent that main problem is too narrow, not too wide<br>
&lt;oriol> q+<br>
&lt;dael> fantasai: Syntax is reorderable b/c generally want to allow reordering unless parsing reason not to<br>
&lt;astearns> ack oriol<br>
&lt;dael> oriol: It seems reasonable to me to be able to spec a min with no max. I guess you could do it was calc 1/0 to get infinity. Should we add a way to spec min?<br>
&lt;dael> fantasai: You can spec infinity as a keyword. You can spec a keyword for no ax<br>
&lt;dael> TabAtkins: I agree makes sense to allow unspecified as max so keyword makes sense<br>
&lt;dael> fantasai: keyword like nomax?<br>
&lt;dael> TabAtkins: Should go with infinity. Or infinite.<br>
&lt;fantasai> s/nomax/no-max/<br>
&lt;dael> fantasai: Okay, that's in animation. good to be consistent<br>
&lt;dael> astearns: If you have a repeat that's repeat(autofill 3) it's a max but if you add infinite keyword the 3 is the minimum<br>
&lt;dael> fantasai: If you add a 5 the minimum is 3.<br>
&lt;dael> TabAtkins: Having consistently the first number be the min isn't problematic and you can always add a max<br>
&lt;dael> fantasai: I don't think we want to do that becase columns we do that as a maximum<br>
&lt;dael> astearns: Question do we require 2 numbers<br>
&lt;dael> TabAtkins: IN concat can we do min and max?<br>
&lt;dael> fantasai: Just a max<br>
&lt;dael> TabAtkins: Then I think more comfortable requiring 2<br>
&lt;TabAtkins> s/concat/column-count/<br>
&lt;dael> fantasai: I could live with that.<br>
&lt;dael> fantasai: I think it would be nice to have the one, but if we want to require we can do that<br>
&lt;dael> astearns: We can start with both and when there's author experience decide if we want to allow a single<br>
&lt;dael> astearns: One question...you talk about this is important for masonary, but also important for non-masonary<br>
&lt;dael> 3?<br>
&lt;dael> fantasai:<br>
&lt;dael> Yes. Prop is add to grid properties to effect both<br>
&lt;fantasai> s/effect/affect/<br>
&lt;dael> astearns: And we don't have a repeat function?<br>
&lt;dael> fantasai: Repeat can take number or a keyword. This allows you to combine both to get a range<br>
&lt;TabAtkins> i forgot that we could take a number by itself. in that case i definitely think the range should require both<br>
&lt;dael> astearns: Prop: Add two numbers to the repeat function that when used with one of the keywords define a range<br>
&lt;dael> astearns: Obj?<br>
&lt;dael> RESOLVED: Add two numbers to the repeat function that when used with one of the keywords define a range<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9325#issuecomment-1789830378 using your GitHub account


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

Received on Wednesday, 1 November 2023 23:30:20 UTC