Re: [csswg-drafts] [css-grid-1] Track Sizing Algorithm question (#2873)

The CSS Working Group just discussed `[css-grid-1] Track Sizing Algorithm question`, and agreed to the following:

* `RESOLVED: when distributing past growth limits, we distribute prioritizing tracks that have max-content max-track-sizing function`

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> oriol: this was about a test-case with 2 tracks, sized min-content and auto<br>
&lt;emilio> ... resulting behavior was not what the author expected<br>
&lt;emilio> ... discussed in july and resolved to try improving it<br>
&lt;emilio> ... after a detailed analysis my understanding is that there were two problems<br>
&lt;emilio> ... one was the author's fault<br>
&lt;emilio> ... auto track sizing had different meanings if used as a max or min<br>
&lt;emilio> ... so we had a smaller minimum, so I think the author should fix the minimums using minmax<br>
&lt;emilio> ... this will provide the expected behavior on some cases<br>
&lt;emilio> ... but not others. To address those others is that when we're distributing, right now we try to respect the growth limit, but if all tracks have reached the limit then we distribute between tracks that have intrinsic sizes<br>
&lt;emilio> ... but we don't differentiate between min and max-content<br>
&lt;emilio> ... so to fix this the proposal is to first try to distribute first to the max-content max-sizing functions, then min-content<br>
&lt;emilio> ... fit-content() is a bit trickier<br>
&lt;emilio> ... will initially behave as max-content, and at some point it'd be fixed so it'd use the min-content rules<br>
&lt;emilio> ... not sure if there's websites that would break<br>
&lt;emilio> ... would improve the test-cases here and it seems reasonable<br>
&lt;emilio> dholbert: in the block axis min/max-content are the same, does it make sense to differentiate between them?<br>
&lt;emilio> fantasai: min-content / max-content contributions are the same but the sizing keyword is different so we could give them different behavior<br>
&lt;emilio> oriol: those are keywords for track-sizing which aren't the same as css-sizing<br>
&lt;emilio> emilio: so this would still apply in the block axis<br>
&lt;emilio> oriol: yeah this doesn't depend on whether the contributions are the same, just about prioritizing<br>
&lt;emilio> ... height: min/max-content behaves the same as auto, which is true in implementations but not in the spec for grid/flex at least<br>
&lt;emilio> dholbert: [quotes spec]<br>
&lt;emilio> ... but yeah sounds fine<br>
&lt;emilio> astearns: concerns? oriol can you summarize the proposal?<br>
&lt;emilio> oriol: when distributing past growth limits, we distribute prioritizing tracks that have max-content max-track-sizing function<br>
&lt;emilio> RESOLVED: when distributing past growth limits, we distribute prioritizing tracks that have max-content max-track-sizing function<br>
</details>


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


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

Received on Monday, 12 February 2024 22:07:10 UTC