When flexbox items wrap in column mode, container does not grow its width
问题 I am working on a nested flexbox layout which should work as follows: The outermost level ( ul#main ) is a horizontal list that must expand to the right when more items are added to it. If it grows too big, there should be a horizontal scroll bar. #main { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; /* ...and more... */ } Each item of this list ( ul#main > li ) has a header ( ul#main > li > h2 ) and an inner list ( ul#main > li > ul.tasks ). This inner list is