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

Re: [css3-values] nesting calc()

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Wed, 20 Jun 2012 06:15:41 +0800
Message-ID: <4FE0FA0D.3010802@csail.mit.edu>
To: fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
(12/06/20 5:34), fantasai wrote:
> Tab raised an issue with CSS Variables in that if you want one to be a
> calc()
> expression, but then use it *inside* a calc() expression, it's invalid.
> 
> There are two ways around this:
>   1. Allow calc() inside calc(); define it to be equivalent to bare
> parentheses.
>   2. Define bare parentheses as equivalent to (or a replacement of) calc()
>      when used as a component value.

I think 2. is actually quite a good idea. We parse bare parentheses in
"calc()" already so just having bare parentheses replace "calc()" would
just reduce the syntax to what everyone is familiar with since
elementary school.

I go for a replacement.

Cheers,
Kenny
Received on Tuesday, 19 June 2012 22:16:12 GMT

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