Flex basis 100% in column flexbox: full height in Firefox, not in Chrome Flex basis 100% in column flexbox: full height in Firefox, not in Chrome google-chrome google-chrome

Flex basis 100% in column flexbox: full height in Firefox, not in Chrome


This seems to be a bug with Chrome. Similar to the ones reported here (issue 428049) and perhaps related to (issue 346275).

This says:

- Browsers are supposed to resolve percentages on the flex item's child, *if* its flex-basis is definite.- Gecko is *always* resolving percentages regardless of the flex-basis.- Chrome is *never* resolving percentages, regardless of the flex-basis. 

Summarily, Chrome is not resolving percent heights on flex-item's child (even if the child itself is a flex-item), while all other browsers do.

This can be demonstrated in the below snippet: (Fiddle here)

* { box-sizing: border-box; margin: 0; padding: 0; }div.wrap {    height: 120px; width: 240px; margin: 0px 12px;    border: 1px solid blue; float: left;    display: flex; flex-direction: column;    }div.parent {    flex: 0 0 100%;    border: 1px solid green;     display: flex; flex-direction: column;    }div.item {    flex: 0 0 100%;    border: 1px solid red;}
<div class="wrap">    <div class="item">a</div>    <div class="item">b</div>    <div class="item">c</div></div><div class="wrap">    <div class="parent">        <div class="item">a</div>        <div class="item">b</div>        <div class="item">c</div>    </div></div>