Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-flexbox] flex-wrap: balance; #9086

Closed
bramus opened this issue Jul 18, 2023 · 3 comments
Closed

[css-flexbox] flex-wrap: balance; #9086

bramus opened this issue Jul 18, 2023 · 3 comments

Comments

@bramus
Copy link
Contributor

bramus commented Jul 18, 2023

With text-wrap: balance; becoming available, we’ve had a few requests from authors to have something like flex-wrap: balance;

See this demo right here, which is currently impossible to replicate if it were a flex layout:

ssstwitter.com_1689716135029.mp4
@bramus bramus added the css-flexbox-1 Current Work label Jul 18, 2023
@Afif13
Copy link

Afif13 commented Jul 18, 2023

I can imagine the behavior when dealing with fixed and equal size elements but what about different width elements with a complex flex-grow/flex-basis/flex-shrink configuration?

Will the logic be based on the number of elements (let's try to have the same number on each row) or based on their width (let's try to have the sum of width almost equal on each row)

@johannesodland
Copy link

There’s already an issue on flex-wrap: balance: #3070

Could this be a duplicate?

@bramus
Copy link
Contributor Author

bramus commented Jul 19, 2023

Duplicate indeed. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants