W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css3-flexbox] 7.3 Components of flexbility

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 31 May 2012 08:02:51 -0700
Message-ID: <CAAWBYDCEWF=dNU_eUw-u3EQfYb4qr8NZVK1FdYcrnhVt8_+-iw@mail.gmail.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Wed, May 30, 2012 at 11:14 PM, Sylvain Galineau
<sylvaing@microsoft.com> wrote:
> This section holds a note that says:
>
> # Authors are encouraged to control flexibility using the 'flex' shorthand rather than with component properties.
>
> Any particular reason this encouragement is required for Flexbox?
>
> [1] http://dev.w3.org/csswg/css3-flexbox/#flex-components

Because there are two basic types of flexing you can do (the old
"absolute" vs "relative" flexing distinction) and the initial values
for the properties are set up to only support one of them.  Using the
'flex' shorthand ensures that things "just work" in the common cases.

~TJ
Received on Thursday, 31 May 2012 15:03:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT