I am making a website that makes use of the flexbox
. I have discovered a difference in the Firefox and Chrome implementations. To me, it seems like Chrome has incorrect behavior.
The issue is this. Let's say we have a div
with display: flex
and flex-direction: row
. This div contains two children c1
and c2
. Both c1
and c2
will have the same height, which is the maximum height needed to fit the content in either child. If we add a child to c1
(say c11
), then this child (c11
) cannot set its height as a percentage of its parent's (c1
). In Firefox, this works fine. Here is a fiddle illustrating the difference (open in Firefox and Chrome):