Re: [csswg-drafts] [css-flexbox] Max flex grow (#4143)

> a different amount of pixels has been added to each link because they have different default widths, which results in unequal gaps

Are you mostly trying to work around having a responsive but uniform "padding" between items? If this is the case, "maxing" flex grow, which keys off a fraction of the empty space in the flex direction and the content size of the item, might not be the way to go, because short of that max, the grow will still be related to the unique size of content in each item?

Even if `min()`/`max()` hasn't landed everywhere yet, I think your best bet with currently specified behavior would be to use them in ways like adding `padding: 10px max(10px, 3%)` on your flex items. Though I know the `3%` or whatever amount of `%`/`vw` would have to be related to the amount of flex items.

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

Received on Tuesday, 23 July 2019 12:24:32 UTC