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

[css3-flexbox] What the flex is basis?

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Fri, 3 Aug 2012 00:02:29 -0700
Message-ID: <CALRQH7-EGUNi98-ngobvRiQ-6qL1nYwbuhUdvW8s0RC4dt_maQ@mail.gmail.com>
To: www-style@w3.org
If we would have real flex length units [1] then this

http://dev.w3.org/csswg/css3-flexbox/images/rel-vs-abs-flex.svg

can be defined simply as:

first case:

  span { width:1*; min-width:max-content; }
  span:last-child { width:2*;  }

and second case:

  span { padding:1*; min-width:max-content; }
  span:last-child { padding:2*;  }

without that mix of pathetic 'basis', 'grow' and
its antonym 'shrink'.

[1] http://www.terrainformatica.com/w3/flex-layout/flex-layout.htm

-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Friday, 3 August 2012 07:03:00 GMT

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