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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 27 Jan 2012 11:20:57 +0100
Message-ID: <4F227A89.500@mit.edu>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:49 GMT