- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 13 Aug 2025 16:34:53 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-grid-2] Subgrid auto repeat calculation when <line-name-list> size isn't a multiple of remaining subgrid tracks`, and agreed to the following: * `RESOLVED: define that subgrid repeat works exactly the same as grid repeat` <details><summary>The full IRC log of that discussion</summary> <JoshT> fantasai: there was a question of what to do if the subgrid has a repeat() with multiple line names<br> <Kurt> q+<br> <TabAtkins> q+<br> <JoshT> ... let's say two line names but the number of lines in subgrid is odd. do you just cut the last repetition or just the names don't ger assigned for the last section<br> <JoshT> ... my intent when I wrote the spec was that we only do whole numbers in repetitions in the repeat functions<br> <JoshT> ... here the number of lines is set and we just have to give names<br> <JoshT> ... if we cut off at the last rep, there are some lines that don't get names<br> <JoshT> ... but if we clamp, they all get names<br> <astearns> ack Kurt<br> <JoshT> ... that seems more reasonable than cutting up the last repetition<br> <JoshT> Kurt: was going to distingush between whether subgrid span size is large enough for a single repeat<br> <JoshT> ... but I see that's generalised to fantasai's case for splitting the remainder<br> <JoshT> ... that was my question. i think it's the same problem<br> <JoshT> ... but my concern with changing this is: is it safe to change at this point?<br> <astearns> ack TabAtkins<br> <JoshT> ... subgrid is shipped. are we OK changing how auto-repeat changes in these scenarios?<br> <JoshT> TabAtkins: I do not think we should change behaviour<br> <JoshT> ... if you have several repeated lines, you are probably depending on them as a block<br> <JoshT> ... and putting things next to those lines. so if you have partial repetition, your layout will be broken<br> <JoshT> ... they'll be too short or ???, etc<br> <JoshT> ... in normal grid, we don't allow partial repetitions to prevent accidentally getting a partial bit of something the author intended to be a unit<br> <JoshT> ... so like here if you're just defining line names<br> <oriol> q+<br> <JoshT> ... if there was a great reason to diverge, we should be self-consistent when we can. so I think the argument here is to be consistent anyway<br> <astearns> ack oriol<br> <JoshT> oriol: I agree with TabAtkins about consistency argumeny<br> <JoshT> ... I had idea in issue. maybe partial keyword to provide to repeat function to opt into this behaviour<br> <kizu> +1 to `partial` keyword, including in regular grids as well<br> <JoshT> fantasai: I'm OK with it!<br> <JoshT> astearns: resolution for this issue is to keep the subgrid autorepeat consistent with the grid autorepeat, but make a new issue for the partial keyword in the repeat function if we find a use case for it<br> <JoshT> ... is there any spec change for this issue needed?<br> <JoshT> fantasai: seems like there should be some clarification<br> <JoshT> TabAtkins: this was raised on the assumption that something is missing in the spec<br> <JoshT> RESOLVED: define that subgrid repeat works exactly the same as grid repeat<br> <JoshT> Kurt: that resolves things<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8493#issuecomment-3184627659 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 August 2025 16:34:54 UTC