- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 21 Feb 2024 12:59:47 +0000
- To: public-css-archive@w3.org
Something that I was thinking is that https://github.com/w3c/csswg-drafts/issues/2356#issuecomment-405056334 minimizes the total size of the table, but that's actually stronger than what was being desired here (avoiding items with unnecessary excess). For example, ```html <div style="display: inline-grid; border: solid; grid-template-columns: repeat(5, auto)"> <div style="grid-column: 1 / 3; width: 100px"></div> <div style="grid-column: 2 / 5; width: 200px"></div> <div style="grid-column: 4 / 6; width: 100px"></div> </div> ``` The current spec sizes the columns like `50px 50px 100px 50px 50px`. Then the grid is 300px wide, even though 200px would be enough with `0px 100px 0px 100px 0px`. However, no item has excess, so the current spec already behaves like this issue requests. So, dropping the requirement of a minimal sum of track sizes, I think we could come up with al algorithm that fits much better with how the spec currently behaves. I'm not convinced by iterative algorithms with dubious convergence that try to reduce excess after the fact. I think this needs to be handled in https://drafts.csswg.org/css-grid/#extra-space, doing something better than the "item-incurred increase" and "planned increase" thingies. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2356#issuecomment-1956601097 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 21 February 2024 12:59:49 UTC