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

Comments in CSS

From: Manuel Strehl <manuel.strehl@stud.uni-regensburg.de>
Date: Wed, 07 Dec 2005 17:11:37 +0100
Message-Id: <439717C9020000FD00000CC5@gw.ngate.uni-regensburg.de>
To: <www-style@w3.org>

Hi.

Surely this topic came up several times before, but allow me to mention
it again. Wouldn't it be useful to allow C++ like "till end of line"
comments like "//" in CSS?
E.g.: You usually have CSS files like:

selector {
  property1;
  property2;
  property3;
}

So, if you'd like to test the CSS without, say, prop2 (cause you'd like
to see what it's like, when the UA overrides your "color" property...),
it would be really fine, if you could comment it out by just typing "//"
rather than wrap it in "/*"..."*/":

selector {
  property1;
  //property2;        much faster than /*property2*/
  property3;
}

Regards
Manuel
Received on Wednesday, 7 December 2005 16:11:58 GMT

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