Flexbugs: Firefox will not honour flex properly on inputs

Created on 19 May 2016  路  1Comment  路  Source: philipwalton/flexbugs

Input elements inside a flex-box decide they have an intrinsic size, which in some way is related to the font size.

To workaround, set a min-width of 0 on the input element.

http://codepen.io/MattyBalaam/pen/VaJjVq

https://bugzilla.mozilla.org/show_bug.cgi?id=1242914

Most helpful comment

I'm not sure this is a bug because I'm not sure the spec makes it explicit what the min-content size of an input is.

I'm going to close this because min-width: 0 is probably what most people should use here anyway. It's not really a workaround, it's the recommendation.

>All comments

I'm not sure this is a bug because I'm not sure the spec makes it explicit what the min-content size of an input is.

I'm going to close this because min-width: 0 is probably what most people should use here anyway. It's not really a workaround, it's the recommendation.

Was this page helpful?
0 / 5 - 0 ratings