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

Re: [css3-flexbox] flex-shrink defines a negative flex ratio; negative numbers are invalid

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 5 Jun 2012 10:37:00 -0700
Message-ID: <CAAWBYDAJ=K2nbs6B1ToH2JMvoTDN=WBP=bBQ2pWzJhodg=k_-A@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: Alex Mogilevsky <alexmog@microsoft.com>, Sylvain Galineau <sylvaing@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, May 31, 2012 at 2:42 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> On 05/31/2012 02:18 PM, Alex Mogilevsky wrote:
>> It would make "flex:1 -1 100px" look cool and we certainly can do
> that. It would however create the first ever precedent of a property
> taking negative values only. And its meaning is not really "negative",
> it is ability to shrink...
>> Maybe we should just use a different word in the spec?
> Perhaps just:
>  s/positive flex ratio/flex grow ratio/
>  s/negative flex ratio/flex shrink ratio/
> with appropriate massaging of contextual text?
> (e.g. "If the sign of the free space matches the sign of the
> flexibility" would perhaps get s/matches the sign/matches the type/.)

Good idea, done.

Received on Tuesday, 5 June 2012 17:46:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:00 UTC