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

Re: [css-flexbox] Better define the computed value of 'flex-basis'

From: Daniel Holbert <dholbert@mozilla.com>
Date: Wed, 07 May 2014 14:01:18 -0700
Message-ID: <536A9F1E.5040001@mozilla.com>
To: www-style <www-style@w3.org>
On 05/07/2014 11:57 AM, fantasai wrote:
> Some more info:
>   This gives more useful information via getComputedStyle(), which
>   is probably a better use case than inheriting 'flex-basis'.

Note that getComputedStyle() returns the "used value", not the computed
value.

Perhaps we could specify that the *used* value of flex-basis should have
the property's "auto" value resolved? (...to the computed (not used)
value of the width/height property, based on the parent's flex-direction).

That would let getComputedStyle() provide more useful results (which
seems to be the main goal here), without introducing any weird
inheritance behavior, and without there being a bizarre difference
between "auto" in specified vs. computed values.

~Daniel
Received on Wednesday, 7 May 2014 21:01:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:26 UTC