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

Re: [css3-flexbox] "inherit" as the preferred size subcomponent of "flex" property

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 24 Feb 2012 18:18:01 -0800
Message-ID: <CAAWBYDD+3yTb-nS3DSeb+BkmGDO=a-u3H8XR0YcE=0POaPWzYg@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: www-style <www-style@w3.org>
On Fri, Feb 24, 2012 at 5:36 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> Hi www-style,
> Is it intended that "inherit" be allowed as the preferred-size component of "flex"?  That is to say, is this style valid:
>  flex: 1 0 inherit;
> I submit "please no" as an answer.  If "inherit" were allowed there, it'd make style-computation more complex, since it takes extra work to figure out what value should be inherited by that subcomponent (width or height, depending on whether we're horizontal or vertical).

'inherit' is never valid as a component of a property, only as the
entire value.   So you're good.  ^_^

Received on Saturday, 25 February 2012 02:18:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:56 UTC