W3C home > Mailing lists > Public > www-style@w3.org > September 2002

Re: C++ // style comments

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Sun, 22 Sep 2002 10:20:53 -0400
To: Frank Boumphrey <bckman@ix.netcom.com>
Cc: Skewer_Lists@GadgetScope.com, www-style@w3.org
Message-ID: <20020922102053.A27363@is07.fas.harvard.edu>

On Sunday 2002-09-22 01:01 -0400, Frank Boumphrey wrote:
> > As a bonus (depending on how you look at it), since CSS3 style sheets
> > with these kind of comments would produce errors
> Actually most browsers already 'support' this kind of comment. Only
> Konquerer (of the browsers I play areound with) does not.

Mozilla does not.  Be careful to test browsers in a way that the comment
doesn't cause exactly what you wanted to be ignored to be ignored
because of the CSS error handling rules.  For example, try the following

<title>CSS Comments test</title>
<style type="text/css">
// This is not a comment.
p { color: red; }
<p>This paragraph should not be red.</p>


L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ >
Received on Sunday, 22 September 2002 10:20:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:03 UTC