W3C home > Mailing lists > Public > www-style@w3.org > August 2013

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 27 Aug 2013 21:28:58 +1000
Message-ID: <521C8D7A.50707@mcc.id.au>
To: Simon Sapin <simon.sapin@exyr.org>
CC: www-style@w3.org
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC