concept
flex-nested-overflow — CSS reference
Nested flex layouts can retain an ancestor’s automatic minimum even when a descendant is shrinkable. Apply zero minimum to the flex item that blocks shrinking, then choose overflow or wrapping on the actual content region. This example uses a scrollable nested item and keeps the sibling visible.
Formal Syntax & Structure
css syntaxcss
min-width: 0; overflow: auto;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}#a{min-width:0;display:flex}#inner{min-width:0;overflow:auto;flex:1}</style><body><div id="p"><div id="a"><div id="inner"><div style="width:200px">Wide content</div></div></div><div id="b">B</div></div></body></html>