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

On 1/27/12 2:14 AM, Alex Mogilevsky wrote:
> ± From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
> ± Sent: Thursday, January 26, 2012 4:36 PM
> ±
> ± If you ask for the specified value (via the OM APIs that let you query
> ± el.style or examine the stylesheet directly), you'll get back 'auto'.
> ± If you call getComputedValue(el).flexItemAlign, though, you'll get the
> ± flexbox's 'flex-align' value, because it's already resolved the computed
> ± value.
> ±
> ± This is standard behavior for these sorts of properties.
>
> Interesting. You mean getComputedStyle(), the one that returns used values, right?

getComputedStyle returns used values for some properties (there's a 
short list of these in the spec draft), but computed values for other 
properties.

-Boris

Received on Friday, 27 January 2012 10:21:28 UTC