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

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 UTC