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

Re: [css3-values] multiplying and dividing complex units in calc?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 8 Mar 2012 11:59:06 -0800
Message-ID: <CAAWBYDA8Lg6mstAn8O3oj1aScxtAc=vDaF00h2Y_6Q4Mvz50xw@mail.gmail.com>
To: Chris Eppstein <chris@eppsteins.net>
Cc: www-style@w3.org
On Thu, Mar 8, 2012 at 11:38 AM, Chris Eppstein <chris@eppsteins.net> wrote:
> Really doesn't seem that that big of a challenge. Provide a fallback value
> as a second argument which would default to 0.
>
> width: calc(100px / (50% - 100px), 10px)

It would obviously require some sort of fallback value, yes.  One of
the issues is deciding what the best fallback value is.  '0' is
simple, but not obviously the best, particularly if the property
doesn't accept 0.

~TJ
Received on Thursday, 8 March 2012 19:59:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT