The blue box should be 100% height. It works when I set a pixel height for div.a
, but unfortunately this is not an option for the real world case.
This probably explains everything: http://codepen.io/anon/pen/jrVEpB
.a{
background-color:red;
display:flex;
}
.b1{
flex-grow:0;
background-color:green;
}
.b2{
flex-grow:1;
background-color:yellow;
height:100%;
}
.c{
height:100%;
background-color:blue;
}
<div class="a">
<div class="b1">
<p>hurr durr</p>
<p>hurr durr</p>
<p>hurr durr</p>
<p>hurr durr</p>
<p>hurr durr</p>
<p>hurr durr</p>
</div>
<div class="b2">
<div class="c">
miksi et ole full height saatana
</div>
</div>
</div>