W3C home > Mailing lists > Public > www-international@w3.org > January to March 2015

[css-text] Enclosed alphanumerics and text-align:capitalize

From: Richard Ishida <ishida@w3.org>
Date: Tue, 10 Mar 2015 15:29:32 +0000
Message-ID: <54FF0DDC.6000408@w3.org>
To: www International <www-international@w3.org>, www-style@w3.org

i was wondering about how to treat enclosed alphanumerics when 
text-align is set to capitalize.

See the test results at 

wrt uppercase or lowercase transforms, the spec simply says "Puts all 
letters in lowercase", or vice versa, and that seems to me appropriate, 
for those characters that have Unicode mappings. The tests 
text-transform-upperlower-026.html, text-transform-upperlower-027.html 
indicate that this is what happens across all major desktop browsers.

For text-transform: capitalize, however, the spec says "Puts the first 
*typographic letter unit* of each word in titlecase" (my emphasis).  As 
you can see in test text-transform-capitalize-031.html, it makes sense 
when punctuation and the like precede the actual word of the text to 
look for the first real letter. (All browsers pass that test.)

it's not clear to me, however, whether a word that only consists of 
enclosed alphanumerics (which don't fit the definition of 'typgraphic 
letter unit'), or even one that starts with an enclosed alphanumeric 
block character, should be not title cased: see the results of 
text-transform-capitalize-026.html. Firefox currently does not. Chrome 
and Safari, on the other hand do titlecase per the Unicode data.  IE 
titlecases everything except the first word on the page.

i can't imagine that people will want to do this very often, so this 
seems much like an edge case, but i thought i'd ask the question, all 
the same.

what's the answer?

Received on Tuesday, 10 March 2015 15:29:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:07 UTC