Answer the question
In order to leave comments, you need to log in
How to fix a bug in Safari with flexbox?
Hello, I encountered such a problem, if there is no space for blocks in the container, then in the latest version of safari they do not jump to a new line, but tear the container. What is the reason?
Demo:
codepen.io/anon/pen/LbVMaN
In general, I took the implementation from here flexboxgrid.com
Answer the question
In order to leave comments, you need to log in
.col-auto {
flex-grow: 1;
flex-basis: initial; // Тут надо не 0, а initial, например.
// Иначе сафари справедливо считает, что мин. размер блока нулевой,
// так что переносить блоки не надо, они всё равно помещаются
max-width: 100%;
padding: 8px;
}
Make it a rule to specify flex:0 1 auto (or your own values, of course) for elements, so as not to run into bugs later.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question