W3C home > Mailing lists > Public > www-style@w3.org > June 2011

[css3-flexbox] error in flexbox editor's draft on "margin/padding: flex()"

From: Daniel Holbert <dholbert@mozilla.com>
Date: Tue, 14 Jun 2011 16:06:30 -0700
Message-ID: <4DF7E976.6070100@mozilla.com>
To: www-style@w3.org
Hi www-style,

The current editor's draft of the flexbox spec[1] is inconsistent on 
whether the margin & padding properties can take the flex() function.

Section 5 "Flexibility" says that they *cannot* take flex():
 >  Paddings and margins are made flexible by setting their
 >  value to ‘auto’, while the width and height of a box can
 >  be controlled more precisely with the ‘fr’ unit or the
 >  ‘flex()’ function, both defined below.
http://dev.w3.org/csswg/css3-flexbox/#flexibility

But Section 8.1 "Initial Computation" says that they *can* take flex():
 >  For margins and padding:
 >  [...]
 >  Otherwise, if the length was specified with the ‘flex()’ function
http://dev.w3.org/csswg/css3-flexbox/#initial-computation

I'm guessing that Section 8.1 is wrong --  I think that the "Otherwise" 
clause that I quoted just wants to be deleted, right?

Thanks,
Daniel Holbert
Received on Tuesday, 14 June 2011 23:06:59 GMT

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