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

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

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Fri, 27 Jan 2012 01:14:36 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: Daniel Holbert <dholbert@mozilla.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928412E1DF76@TK5EX14MBXC218.redmond.corp.microsoft.com>
± 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?

Is that required that it returns used value instead of 'auto' for all properties that have 'auto'?
Received on Friday, 27 January 2012 01:15:10 GMT

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