Re: Single-line comments

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 UTC