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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 10 Sep 2013 12:39:30 +1000
Message-ID: <522E8662.1080904@mcc.id.au>
To: www-style list <www-style@w3.org>
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".
Received on Tuesday, 10 September 2013 02:40:05 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC