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

Re: [css-flexbox] Fixed mistakes in min-size:auto section, please review

From: Daniel Holbert <dholbert@mozilla.com>
Date: Mon, 18 Aug 2014 16:16:43 -0700
Message-ID: <53F2895B.7060605@mozilla.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
On 08/18/2014 04:08 PM, Tab Atkins Jr. wrote:
> Hm, you're right.  I was operating under the assumption that
> "flex-basis: 100px;" and "flex-basis: main-size; width: 100px;" should
> be absolutely identical in all circumstances, but I guess this is a
> situation where they can have different behavior.

Yeah -- IIRC, we made "min-width:auto" depend on specified "width" [via
flex-basis:main-size] just to make things more intuitive for authors who
had content like...

  <div style="flex:none; width:5px">helloooooooooooo</div>

...and then got confused about why their specified "width" seemed to be
ignored.

Authors have expectations about specified "width"/"height" being honored
(even if they're small), but I don't think they've developed similar
expectations about "flex-basis" (which is good, because flex-basis is
just just a "basis" from which we generally expect to "flex"). That
difference in expectations is why I think it's reasonable for these
behaviors to differ, even though it's a bit inconsistent.

> I'll remove the
> first bullet-point, then.

Cool, that sounds good to me. Thanks!

~Daniel
Received on Monday, 18 August 2014 23:17:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 18 August 2014 23:17:12 UTC