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

first-letter-non-punctuation-001 invalid

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 15 Oct 2010 12:21:39 -0700
To: public-css-testsuite@w3.org
Message-ID: <20101015192139.GA6934@pickering.dbaron.org>

This test is invalid, I believe, since it is testing that
:first-letter applies to a character that:
 * is not a letter or a digit
 * is not in one of the punctuation classes through which
   :first-letter is extended

The relevant section of the spec,
http://www.w3.org/TR/CSS21/selector.html#first-letter , says that
:first-letter applies to the first letter or digit, and is also
extended through punctuation.

However, Gecko does not apply it to other types of characters, such
as symbols (character classes S*) and the types of punctuation
through which it is not extended (Pd, in this case).  This appears
to be the behavior the spec calls for, which leads me to conclude
that this test is invalid, and should actually be testing that the
:first-letter does not apply to any characters at all (if that's the
correct interpretation of the spec, which, I admit, is a little


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 15 October 2010 19:22:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:21 UTC