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

Re: Comments in CSS

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 07 Dec 2005 17:26:54 +0100
To: "Manuel Strehl" <manuel.strehl@stud.uni-regensburg.de>, www-style@w3.org
Message-ID: <op.s1e9a4wu64w2qv@id-c0020.oslo.opera.com>

On Wed, 07 Dec 2005 17:11:37 +0100, Manuel Strehl  
<manuel.strehl@stud.uni-regensburg.de> wrote:
> 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;
> }

How about x-property2;? That would cause the rule to be dropped. Not the  
same semantics, but you keep the effect. (I mostly just use x without all  
the dashes, but this seems more appropriate.)

Anne van Kesteren
Received on Wednesday, 7 December 2005 16:27:17 GMT

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