Chapter 4 - Syntax and basic data types - 4.1.9 Comments
Go to the relevant page of the specification.
Parsing comments within style tag
Comments are allowed anywhere within a style tag declaration and are ignored.
- comments-002 (invalid)
Comments cannot be nested.
- comments-003 (invalid)
HTML comments and CSS comments
SGML comment delimiters do not delimit CSS comments.
- comments-004 (invalid)
Parsing of invalid comments
Comments that are invalid are ignored.
- comments-005 (invalid)
Parsing of escaped "/" within a valid comment
A slash '/' escaped with a backslash will remove its special meaning.
- comments-006 (invalid)
Parsing of escaped "*" within a valid comment
A star '*' escaped with a backslash will not remove its special meaning.
- comments-007 (invalid)
Parsing of valid comment that is empty
Empty comments do not affect parsing of rule.
- comments-008 (invalid)
Parsing of escaped opening comment
Escaping a slash '/' for an opening comment makes the comment invalid.
- comments-009 (invalid)
Parsing of invalid escaped "*" in open comment
Escaping a star '*' for an opening comment makes the comment invalid.
UAs must ignore SGML comment delimiters between statements.
Parsing SGML comments
SGML comment tokens are parsed and ignored.
Parsing of CDO/CDC in stylesheets