Initial value for min-width and min-height has been changed back to 0 (even on flex items)

Published: | Categories: CSS


Since Firefox 18, the min-width and min-height properties have taken the auto keyword as their initial value, which computed to 0 in most cases but had special behaviour on flex items. This value was introduced in a previous version of the CSS flexible box (flexbox) spec, but a subsequent version of the spec removed the value. Consequently, the initial value of these properties has been restored to 0, as defined in CSS 2.1, and auto is no longer recognized as a valid value.