W3C home > Mailing lists > Public > www-style@w3.org > October 2008

[CSS21] What does 'text-transform: capitalize' mean, exactly?

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 19 Oct 2008 23:17:59 +0200
To: www-style@w3.org
Message-ID: <20081019211759.GA17011@pickering.dbaron.org>

I just wrote a not-very-complicated testcase for 'text-transform:

However, it shows up differently in Mozilla, WebKit, and Opera.
For example, the text "(i.e.," turns into
  "(i.e.," in Opera
  "(I.e.," in Mozilla
  "(I.E.," in WebKit

Which is correct, and should this be defined in CSS 2.1 (perhaps in
terms of Unicode character classes)?

The spec currently says:
# capitalize
#     Puts the first character of each word in uppercase; other
#     characters are unaffected.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Sunday, 19 October 2008 21:18:36 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:31 UTC