Re: [css3-values] calc() and whitespaces around '+' and '-' (again)

(12/05/12 7:31), Kang-Hao (Kenny) Lu wrote:
> (12/05/12 5:45), L. David Baron wrote:
>> On Thursday 2012-05-10 11:37 +0200, L. David Baron wrote:
>>> I think if we want to change this, we should just change the
>>> dimension token throughout CSS (rather than making the tokenizer
>>> context-sensitive, which is a huge pain), so that - is not allowed
>>> in the unit part of a dimension.
>>
>> Actually, when I mentioned this to Bert at dinner, he pointed out
>> that this won't be sufficient if we want to allow identifiers in
>> calc() in the future.  For example, I think we're likely to want to
>> put auto or min-content inside calc() in the future.
> 
> Why? Unless we want '2min-content', it seems irrelevant. 'min-content'
> isn't a DIMENSION. Am I missing something?

I shouldn't say it's irrelevant. If you want to remove the spaces around
'-' in calc(min-content - 2px), you'll need to write
calc((min-content)-2px)*. However, I don't think this is very hard to
learn, and it's also not clear if we'll do this eventually.

* Or you can choose not to remove the spaces around '-'.


Cheers,
Kenny

Received on Friday, 11 May 2012 23:59:24 UTC