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

Re: CSS 2.1 vagueness for text-transform

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 11 May 2004 21:11:36 -0400
Message-ID: <40A179C8.9050509@inkedblade.net>
To: www-style@w3.org

Nicholas Shanks wrote:
> 
> 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.
>
> 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.

The specification itself is clear, I think. Put the first character of
each word in uppercase. Doesn't say anything about the rest.

As for lower-casing the string, I disagree.

Given
   <span style="text-transform: capitalize;">This page is coded in HTML.</span>
I think we would want
   This Page Is Coded In HTML.
no?

~fantasai

-- 
http://fantasai.inkedblade.net/contact
Received on Tuesday, 11 May 2004 21:12:10 GMT

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