Is there a difference between flex: none and leaving the flex property undefined?
I tested it in several simple layouts and I don't see the difference.
For example, I could remove flex: none from blue item (see code below), and the layout, as I understand, remains the same. Does I understand it right?
And, the second question, what about more complex layouts? Should I write flex: none or I can simply omit it?
.flex-container { display: flex; width: 400px; height: 150px; background-color: lightgrey; } .flex-item { margin: 10px; } .item1 { flex: none; /* Could be omitted? */ background-color: cornflowerblue; } .item2 { flex: 1; background-color: orange; } .item3 { flex: 1; background-color: green; } <div class="flex-container"> <div class="flex-item item1">flex item 1</div> <div class="flex-item item2">flex item 2</div> <div class="flex-item item3">flex item 3</div> </div>