W3C home > Mailing lists > Public > www-style@w3.org > May 2004

CSS 2.1 vagueness for text-transform

From: Nicholas Shanks <contact@nickshanks.com>
Date: Wed, 12 May 2004 02:04:44 +0100
Message-Id: <5B0383E2-A3B0-11D8-80CF-0005020F149E@nickshanks.com>
To: www-style@w3.org

The definition of the 'capitalize' value for text-transform is a tad  
ambiguous.
http://www.w3.org/TR/2003/WD-CSS21-20030915/text.html#propdef-text- 
transform

capitalize
   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.
none
   No capitalization effects.

Is capitalize supposed to only affect the first character or the whole  
string?

<span style="text-transform: capitalize;">WHAT GETS OUTPUT?</span>
Does the above transform to "What Gets Output?" or "WHAT GETS OUTPUT?"

If it's undefined, may I put in a vote for the former (i.e. lower case  
the string first, then capitalize each word). Whether it's defined or  
not, it isn't clarified in the specification.

As a bonus, it would be nice if you specified that a user agent was  
non-conforming if it rendered cyrillic and greek characters (others?)  
but did not capitalize them. A UA that does not render them of course  
need not transform them and still be compliant.

(is this too late for 'last call' ?)

- Nick.
Received on Tuesday, 11 May 2004 21:04:52 GMT

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