Re: [csswg-drafts] [css-flexbox] flex-wrap-layout property for wrapped flex lines (#8252)

I'm sorry, I also can't tell what's being proposed from this example. Removing the `--flex-wrap-layout` property does almost nothing - as far as I can tell it just makes the "Item 1" line slightly narrower so it matches the width of the graph area?

Could you explain what behavior you're intending? I presume you intend for the #container's *grandchildren* (which are not, currently, flex items) to somehow interact in the flex layout algorithm, and tie their sizes together in some way across rows?

This example in particular seems very inappropriate for that, tho. The #container does *not* want to reflow, it wants to have exactly two items on the first row and two items on the second row (with one of the second row's items just being a spacer, to force the horizontal labels into the correct position). This, at a fundamental level, is *not* a flexbox, it's a grid; it has a meaningful two-dimensional layout structure, not a linear one. What benefit do you think you'd get from writing this layout as a flexbox?

(Rereading, I think it's just that you're using a JS library that understands flexbox but not grid, right? If so, then yeah, that's a reason to fix the library, not to make flexbox act like grid.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8252#issuecomment-1444445971 using your GitHub account


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

Received on Friday, 24 February 2023 20:41:15 UTC