Created attachment 295372 [details] Flex container not wrapping item to next line Using the following code, one would expect that when the flex item becomes too narrow to contain its contents, it would wrap to the next flex line. However, in Safari the contents instead overflows the flex item. Screenshots attached. <div class="FlexContainer"> <div class="FlexItem">Item 1</div> <div class="FlexItem">Item 2</div> <div class="FlexItem">Item 3</div> </div> <div class="FlexContainer"> <div class="FlexItem">Item 1</div> <div class="FlexItem">Item 2</div> <div class="FlexItem">Item 3 Item 3 Item 3 Item 3 Item 3</div> </div> * { box-sizing: border-box; } .FlexContainer { display: flex; flex-wrap: wrap; margin: 10px; width: 50%; } .FlexItem { flex: 1 0 33%; padding: 5px; border: 1px solid black; white-space: nowrap; background: red; }
Created attachment 295373 [details] Flex container correctly wrapping item to next line (in Chrome, Firefox)
Created attachment 295596 [details] Test reduction
<rdar://problem/29464628>
Fixed by recent changes to merge in with Blink code.