W3C home > Mailing lists > Public > www-style@w3.org > December 2005

Re: Comments in CSS

From: Bert Bos <bert@w3.org>
Date: Thu, 8 Dec 2005 01:49:30 +0100
To: www-style@w3.org
Message-ID: <20051208004930.GA9115@accueil.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:42 GMT