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

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).

(The "auto" keyword is superficially similar, but it's a bit easier 
because it corresponds to another property on the _same_ element, rather 
than one on its parent -- and it's a single special-case.  Inherit would 
require additional special-case code)

Also, as far as I know, "inherit" isn't allowed as part of a compound 
value anywhere else in CSS . (please correct me if I'm wrong on that 
point.)  It'd be confusing to allow it as a subcomponent here but 
nowhere else.

I think the spec needs a clarification on this -- right now, it says the 
following:
{{
     <preferred-size> is any value that would be valid
     in the ‘width’ or ‘height’ property.
}}
which implies that inherit _would_ be allowed.

Thanks,
~Daniel

Received on Saturday, 25 February 2012 01:36:33 UTC