W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css3-flex] calc(flex) and concept of free space.

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sun, 30 May 2010 10:39:25 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, <www-style@w3.org>
Message-Id: <D57E8B8C-1BC2-46E3-96DE-D0CEC90343B6@gmail.com>
To: "Andrew Fedoniouk" <news@terrainformatica.com>

On May 30, 2010, at 10:06 AM, Andrew Fedoniouk wrote:

> So you are saying that this expression: 
> width: calc(100px + 1px/100% * 1fx)
> may or may not participate in free space
> calculations. 
> If  1px/100% is close to zero the expression will be calculated to "fixed 100px" and to be extracted from available free space. In all other cases it calculates to zero (for the need of free space calculation)
> This means that layout calculation is using unstable algorithm by design - mathematically speaking it has singular points on some widths. 
> This will not fly, sorry.

Your example is very contrived and extremely unlikely to occur for any reason OTHER than to demonstrate precision differences between UAs. THat is not reason enough to throw the baby out with the bathwater. In normal use, you would never just one, near-zero flex measurement in a flexbox.
Received on Sunday, 30 May 2010 17:40:00 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:46 UTC