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

Re: [css3-flexbox] Computed value and flex-align/flex-item-align.

From: Daniel Holbert <dholbert@mozilla.com>
Date: Thu, 26 Jan 2012 11:58:43 -0800
Message-ID: <4F21B073.8080605@mozilla.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style@w3.org
(inserting [css3-flexbox] into subject)

I've got a (probably trivial) followup question on this.

The ED now says that flex-item-align's computed value is as follows:
 > ‘auto’ computes to flexbox's ‘flex-align’; otherwise as specified

What should "auto" compute to for elements that *aren't* inside of a 
flexbox? (in which case there is no flexbox to derive the "flexbox's 
‘flex-align’" from)

I'm guessing that it'd just compute to "auto", yes?  If so, perhaps the 
spec could be changed to clarify this like so:
 > on a flexbox item, ‘auto’ computes to the flexbox's
 >‘flex-align’; otherwise as specified
(just inserting "on a flexbox item" at the beginning)


On 01/13/2012 02:40 PM, Tab Atkins Jr. wrote:
> On Thu, Jan 12, 2012 at 4:43 PM, Ojan Vafai<ojan@chromium.org>  wrote:
>> http://dev.w3.org/csswg/css3-cascade/#computed
>> "Computed values are processed as far as possible without formatting the
>> document. Some values, however, can only be determined when the document is
>> being laid out."
>> http://dev.w3.org/csswg/css3-flexbox/#flex-item-align
>> "A value of ‘auto’ for ‘flex-item-align’ makes the flexbox item use the
>> alignment specified by ‘flex-align’ on its flexbox."
>> That text in the cascading spec is a little vague. If an element has
>> flex-item-align:auto, should it's computed value be "auto" or should it be
>> the parent's flex-align value?
> Hmm, I didn't consider that well enough.
> I think that 'auto' should compute to the value of flex-align.  I'll
> update the draft.
> ~TJ
Received on Thursday, 26 January 2012 19:59:20 UTC

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