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

On Tue, Jun 14, 2011 at 4:06 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> 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?

Yup, that clause was left over from a previous draft, when margins and
padding *could* take flex().  Fixed, thanks!

~TJ

Received on Wednesday, 15 June 2011 00:59:14 UTC