-
Notifications
You must be signed in to change notification settings - Fork 719
[css-flex] Min-content sizing currently too smart to be web compatible? #2353
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
Comments
Another option is to introduce |
|
@dholbert that is my proposal indeed. the spec says that you take the minimum of the specified width of the flex item and its content width; since there is no content in the icon div, the content width is 0px and it completely erases the specified width. |
The Working Group just discussed The full IRC log of that discussion |
Tab and I think @dholbert’s explanation in #2353 (comment) makes the most sense as a way to address this, so we've drawn up some edits for it, see https://drafts.csswg.org/css-flexbox-1/#change-2017-flex-min-contribution @dholbert @FremyCompany Please let us know if this seems like a good way to solve the problem. We'll also be running it past the CSSWG shortly to confirm with them as well. |
The Working Group just discussed The full IRC log of that discussion |
The Working Group just discussed
The full IRC log of that discussion |
Uh oh!
There was an error while loading. Please reload this page.
Hi css-flexers from all around the world,
I just wanted to report that our attempt to update our flex implementation sizing algorithm to match the spec encountered a few hiccups, but this one seems like the most concerning so far:
The pattern we are seeing is authors using in min-content sized/constrained flexboxes, and the icon ends up disappearing because flex-shrink defaults to 1 by default.
I think we should update the specification such that an explicit width acts as a minimum width (even though it could theorically be shrunk).
instead of
The text was updated successfully, but these errors were encountered: