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

Re: [css-syntax] when to insert "/**/"

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 11 Sep 2013 03:12:23 -0700
Message-ID: <CAAWBYDDCCGQTyFfVwGDh+F62RdDE_iv8eiKYkpbpmiJ0iXiaYQ@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: www-style list <www-style@w3.org>
On Mon, Sep 9, 2013 at 7:39 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> The Serialization section of css-syntax says:
>
>   If the implementation does not preserve comments, it must insert the
>   text "/**/" between the serialization of adjacent tokens when the two
>   tokens are of the following pairs: ...
>
> An implementation can preserve comments yet still need to insert "/**/" in
> places, for example with:
>
>   p { var-a:/*a*/1; var-b:var(a)2; }
>
> where the serialization of the computed value of 'var-a' on a <p> would be
> "/*a*/1/**/2".

Hmm, good point!  Okay, I'll amend the description to not imply it's
only needed if you drop comments, and just add  your example.

~TJ
Received on Wednesday, 11 September 2013 10:13:13 UTC

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