Note: For flex-items to wrap onto new rows when their content can no longer be displayed in a single row, then set the wrap option on the container and the flex-basis value to a specific unit that matches the flex-grow ratios.

.container1
flex: 1row nowrap
flex: 1row nowrap
flex: 2row nowrap
.container2
flex: 1row wrap
flex: 1row wrap
flex: 1row wrap