W3C home > Mailing lists > Public > www-style@w3.org > July 2014

Re: [css-flexbox] Different behaviour in FF and Chrome regarding flex-basis

From: Daniel Holbert <dholbert@mozilla.com>
Date: Wed, 23 Jul 2014 09:05:47 -0700
Message-ID: <53CFDD5B.7090101@mozilla.com>
To: Hubert SABLONNIERE <hubert.sablonniere@gmail.com>, www-style@w3.org
I believe you're seeing the results of:
 http://dev.w3.org/csswg/css-flexbox/#min-size-auto

(What is "correct" has changed; that chunk was in the spec, and then was
removed for a while, and is now back with modifications. :) The current
Firefox release is implementing the spec behavior from when it was removed.)

According to the *current* editor's draft spec, I believe the Chrome
behavior is correct, on that testcase. I've actually just yesterday
checked in patches to implement the updated behavior in Firefox, so if
you test the latest Firefox Nightly [1], you'll see that it matches the
Chrome behavior on your testcase.

~Daniel

[1] http://nightly.mozilla.org/

On 07/10/2014 02:40 AM, Hubert SABLONNIERE wrote:
> Hi,
> 
> I'm trying to find out what is the "correct" behaviour according to the
> spec and maybe report a bug in one of these browsers.
> 
> When a {display:flex} container does not have a height and all its
> children have a {flex:1 1 0}, FF collapse the children as if they were
> not in their parent Chrome keeps a minimum height.
> 
> Test case : http://codepen.io/anon/pen/DreHb
> 
> Any clues ?
> Thx.
> 
> Hubert.
Received on Wednesday, 23 July 2014 16:06:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC