concept

flex-automatic-minimum-size — CSS reference

A flex item with automatic main-axis minimum and non-scrollable computed overflow has a content-based minimum. Scrollable overflow values allow a zero automatic minimum. Explicitly setting the main-axis minimum to zero can allow shrinking; content may still need wrapping or scrolling. In a column layout the relevant minimum is normally min-block-size.

Formal Syntax & Structure

css syntaxcss
min-inline-size: 0;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS flexible sizing lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#p{display:flex;width:300px;align-items:flex-start;background:#e6eef2} #p>*{box-sizing:content-box;min-width:0;height:30px;background:#128579;color:white} #b{background:#326c9d}#p{width:180px}#a{flex:1 1 0;min-width:auto}#b{flex:0 0 60px}</style><body><div id="p"><div id="a"><div style="width:200px">Wide content</div></div><div id="b">B</div></div></body></html>
CSS Reference