Re: [css-variables] computed value of variables with abutting tokens

Cameron McCormack:
>> I take it that the computed value of var-b is a stream of two ident
>> tokens, with no white space between. Should this be represented by
>> "a/**/b"?

Simon Sapin:
> I believe that this applies, so yes:
> http://dev.w3.org/csswg/css-syntax/#serialization

Oh great, I hadn't seen that section requiring "/**/".

Cameron McCormack:
>> Do we need to ensure that the computed value of var-b is reported
>> as " /**/ "?

Simon Sapin:
> This would be necessary to round-trip the exact token stream, but in
> this case I think it is not necessary (as all CSS grammars do and
> should treat 2+ whitespace tokens as identical to one) and not
> desirable (it would add noise.)
>
> I added a note in Syntax to clarify:
>
> http://dev.w3.org/csswg/css-syntax/#serialization

That works for me.  Thanks!

Received on Tuesday, 27 August 2013 11:29:34 UTC