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:
capitalize':
http://lists.w3.org/Archives/Public/www-archive/2008Oct/att-0018/text-transform-capitalize.html

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.
--http://www.w3.org/TR/CSS21/text.html#caps-prop

-David

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:15 GMT