1 2 3 4 5 6
<div style="width: 20ch"> <div style="display: inline-flex"> <div style="background: green; flex-grow: 1"> test </div> </div>