Re: Comments in CSS

On Wed, Dec 07, 2005 at 03:32:02PM -0800, Andrew Fedoniouk wrote:
> Bert the origin of the problem is different
> 
> It is because of url() syntax:
> LI { list-style: url(http://www.redballs.com/redball.png) disc }
> Quotes are optional in url() and this prevents use of '//' as comment-start 
> token.

No, URLs wouldn't be a problem, even if '//' had a special meaning in
CSS. The quotes may be optional, but the 'url(' part is not. In fact,
'url(' and ')' act very much like quotes: the whole string, from
'url(' until the next ')' is a single token in CSS.

(This is different from other functional notations, such as rgb() or
lang(), whose parameters are tokenized.)



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Thursday, 8 December 2005 00:49:32 UTC