W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Jul 2019 12:24:30 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-514186986-1563884669-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC