W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: Single-line comments

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 3 Apr 2010 11:46:35 -0700
Cc: "Glen" <glen.84@gmail.com>, <www-style@w3.org>
Message-Id: <CB540942-8722-439A-B954-0EC5641BA4F0@gmail.com>
To: François REMY <fremycompany_pub@yahoo.fr>
I think as long as it was outside of the rule block and before the line feed character, it would just get thrown away, and the practical effect would often be the same as a comment. But if the white space (including line feeds) was ever collapsed into a single space (as some existing editors or optimizers might do), then it would interfere with the next selector.

Anyway, the WG discussed the proposal on 2010-03-24, and it is in the minutes. The issue was closed.

On Apr 3, 2010, at 10:59 AM, François REMY wrote:

> No theorical objection. They are practical objections though. How will it work
> when you use // comments with 'old' browsers ? It will not work. So you can't
> use it in a safe way.
> 
> From: Glen
> Sent: Saturday, April 03, 2010 7:26 PM
> To: www-style@w3.org
> Subject: Re: Single-line comments
> 
> No replies? Does that mean no objections? :-)
> 
> On 2010/03/19 21:08, Glen wrote:
>> 
>> Hi,
>> 
>> Has there ever been any discussion regarding the addition of single-line comments?  //color: red;
>> 
>> It's a lot faster to type when you just want to toggle a single declaration. It's also obviously useful for permanent comments where multiple lines are not required.
>> 
>> Glen.




Received on Saturday, 3 April 2010 18:47:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT