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

On Sat, May 12, 2012 at 1:31 AM, Kang-Hao (Kenny) Lu
<kennyluck@csail.mit.edu> 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?

Yes, min-content isn't a DIMENSION. It's an IDENT, which we're not
changing the grammar of, so "calc(min-content-2em)" looks like a
single ident, as does "calc(auto-min-content)".

~TJ

Received on Saturday, 12 May 2012 09:53:12 UTC