W3C home > Mailing lists > Public > www-style@w3.org > April 2003

Re: text-transform:capitalize

From: Yung-Fong Tang <ftang@netscape.com>
Date: Thu, 03 Apr 2003 17:28:18 -0800
Message-ID: <3E8CDFB2.4030003@netscape.com>
To: Ernest Cline <ernestcline@mindspring.com>
CC: www-style@w3.org



Puts the first character of each word in uppercase. uppercase
Puts all characters of each word in uppercase. lowercase
Puts all characters of each word in lowercase.

shouldn't the capitalize be
"Puts the first character of each word in uppercase (or titlecase if 
applicable) and put all the rest into lowercase."

there are really TWO problem here. Once is about the "titlecase". The 
other CSS2 does not mention how to deal with the rest of the characters.

Mozilla implement it as the spec- which mean it change the FIRST 
characters into upper case, (or title case) but it DOES not change the 
rest of them into lowercase since the CSS2 does not say so.

Should we fix it in 
http://www.w3.org/TR/2003/WD-css3-text-20030226/#caps-prop ?

I attached a test html file. Play it with mozilla, notice in the capitalize

"DZ(Dz(dz(" will be display as "Dz(Dz(dz(" instead of "Dz(dz(dz(" since 
it does not change the 2nd characters into lower case.

In other world, "This is a wORld" will be display as "This Is A WORld", 
but not "This Is A World" since O and R are not the First characters and 
the CSS2 does not say how to deal with the rest of characters in the 
case of capitalize

also, enjoy &#0xdf; in Capitalize

We didn't make make the dotless i work for turkish though....

Ernest Cline wrote:

>Tantek Çelik gave us all a nice April Fool's joke with his text-
>transform: continental, but it did cause me to take a look at the text-
>transform property.  In the definition of what capitalize does 
>shouldn't it be changinging the first letter of each word to what 
>Unicode calls titlecase?  For most characters this is the same as 
>uppercase but for some letters such as U+01F3, the two are distinct 
>with the uppercase being U+01F1 and the titlecase being U+01F2.  
>(U+01F1 looks like "DZ", U+01F2 looks like "Dz", and U+01F3 looks like 
>"dz".) I hope its not too late for this change to be made.

Received on Thursday, 3 April 2003 20:30:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:06 UTC