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.

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

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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:02 UTC