- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 30 Apr 2024 22:38:43 +0000
- To: public-css-archive@w3.org
More details: * It's completely fine to have any arbitrary mixture of fixed and/or flexible tracks. They can be fully sized without regards to content, so there's no issue. * It's fine to have multiple intrinsic-sized tracks *that are the exact same size* (aka a `repeat(5, auto)` or something). These can be dealt with by just measuring every item ahead of time (and adjusting the measured size to handle spanning items; subtract the gaps and divide by the span). * It's fine to have any arbitrary mix of tracks, intrinsic or otherwise, if there are no spanning elements (or if spanning elements don't contribute to the size of columns). Again, you just measure every item once, and then account for the potential of them being in each track; it's slightly more work than the previous bullet, but not unreasonable. (*Technically* the complexity of this is also (number of items * number of tracks), but taking the measurements of an element into account for each of the tracks is much simpler/cheaper when they're only touching one track at a time). * The potential perf issue arises when you have an intrinsic-sized track mixed with *any other-sized track*, and there are spanning items. This requires you to lay out the spanning items multiple times, for every possible position crossing one or more intrinsic tracks; this behavior is quadratic (in the number of spanning items times the number of columns, which can both be arbitrarily large). > (as opposed to the exponential issue tracked in https://github.com/w3c/csswg-drafts/issues/9326). This is actually identical to the exponential issue. The behavior listed here is quadratic for most grid items; it becomes exponential if the spanning items are subgrids (or rather, sub-masonrys) and contain their own spanning items. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10266#issuecomment-2087622924 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 30 April 2024 22:38:44 UTC