Is this a possible browser quirk with safari and column wrapped flexbox's? -
compare how flexbox looks in chrome or firefox , how looks in safari. chrome & firefox correct.
in safari, it's acting minimum height of flex box calculated based on bottom position of last flex item, whereas in other browsers seems calculate minimum height of flex box based upon flex item takes on minimum.
can find out if code wrong or confirm bug?
view snippet in full page see.
html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } .wrapper { margin: 0 auto; max-width: 984px; } .container { margin: 0 80px; padding: 30px 0; } h1 { margin: 0; } .top { position: relative; display: flex; flex-direction: column; max-height: 800px; flex-wrap: wrap; } .prod-header { order: 3; width: 49%; padding-left: 30px; } .prod-header img { width: 100%; } .my-slider { order: 1; width: 51%; padding-right: 30px; } .my-slider img { width: 100%; } .prod-info { order: 4; width: 49%; padding-left: 30px; } .prod-video { order: 2; width: 51%; padding-right: 30px; } .prod-video iframe { width: 100%; } .prod-review { position: absolute; bottom: 0; right: 0; order: 5; padding-left: 30px; width: 49%; } .prod-review img { width: 100%; }
<div class="wrapper"> <div class="container"> <div class="top flex"> <header class="prod-header"> <h1><img src="http://placehold.it/608x300"></h1> <p>family trivia game</p> </header> <div class="my-slider"> <img src="http://placehold.it/608x675"> </div> <div class="prod-info"> <p>lorem ipsum occaecat qui proident aute id voluptate velit nulla anim incididunt.</p> <p>lorem ipsum velit sint dolore dolor irure ullamco eu. lorem ipsum aute irure velit ad in sunt duis sint veniam minim in labore voluptate. lorem ipsum laborum dolore eiusmod ut deserunt occaecat aliquip amet esse quis tempor et.</p> </div> <div class="prod-video"> <div class="videowrapper"> <iframe width="420" height="315" src="https://www.youtube.com/embed/kqtva6xo4de" frameborder="0" allowfullscreen></iframe> </div> </div> <div class="prod-review"> <img src="http://placehold.it/608x375"> <a class="button" href="#">buy now</a> </div> </div> </div> </div>
it looks indeed safari-specific bug.
Comments
Post a Comment