Re: [css3-values] nesting calc()

(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 UTC