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

[css3-flexbox] getComputedStyle on flex property

From: Tony Chang <tony@chromium.org>
Date: Tue, 3 Apr 2012 13:54:40 -0700
Message-ID: <CAL-=4P2trdTxA7W4odPkPTu4kvrWEA1OXr44xvhoiOWHqgW8ww@mail.gmail.com>
To: www-style@w3.org
What should getComputedStyle return when called on the flex property?  Here
are some examples with my guesses:

div.style.flex = 'none';
getComputedStyle(div).flex -> 0 0 auto

div.style.flex = '1 2 3px';
getComputedStyle(div).flex -> 1 2 3px

div.style.flex = '1 2 50%';
getComputedStyle(div).flex -> 1 2 50%

div.style.flex = '1 2 1em';
getComputedStyle(div).flex -> 1 2 16px

div.style.flex = '1 2 auto';
getComputedStyle(div).flex -> 1 2 auto

Does that seem correct?
Received on Tuesday, 3 April 2012 20:55:09 GMT

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