I try to have a div to fill its parent, which has been positioned with flexbox layout. As you can see in the following jsfiddle, the div's height doesn't fill the parent's height.
Why doesn't it work? (update from @mrmcgreg: it doesn't work on Chrome but works on FF)
https://jsfiddle.net/z73pjtox/1/
html:
<header id="header">
header
</header>
<div id="content">
<div>
height: 100%
</div>
</div>
css:
html, body {
height: 100%;
}
body {
margin: 0;
display: flex;
flex-flow: column;
}
#header {
flex: 0 1 auto;
background-color: green;
}
#content {
flex: 1 1 auto;
background-color: blue;
}
#content div {
height: 100%;
background-color: red;
}