W3C home > Mailing lists > Public > public-css-testsuite@w3.org > August 2010

Microsoft comments tests

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sat, 14 Aug 2010 10:26:20 -0700
Message-ID: <4C66D1BC.5080605@inkedblade.net>
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
http://test.csswg.org/suites/css2.1/20100727/xhtml1/comments-006.xht

This test is wrong in several ways.

First, the assertion is:

   A star '*' escaped with a backslash will remove its special meaning.

But backslash escapes don't work like that in comments.

The test is:

   /*\**/color: green;

which is basically a test with a comment that either contains an asterisk
or a backslash and an asterisk, depending on whether the backslash is
taken as an escape or a literal, but that will pass regardless of the
interpretation.

The test should probably be:

    color: green;
    /*\*/*/color: red;

http://test.csswg.org/suites/css2.1/20100727/xhtml1/comments-004.xht

The test here is correct, but the metadata is wrong. The comment is
totally valid. It just happens to contain only a single slash character.

http://test.csswg.org/suites/css2.1/20100727/xhtml1/comments-003.xht

This is a good test, but you MUST put the contents of the <style>
block in a CDATA section, otherwise it's invalid.

~fantasai
Received on Saturday, 14 August 2010 17:26:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:03 GMT