W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [CSS21] [CSS3 Text] Should 'text-transform: uppercase' apply to input type="text" (text entered, typed in text field by user)?

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Tue, 26 Jun 2012 21:28:07 +0800
Message-ID: <4FE9B8E7.4030000@csail.mit.edu>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: Christoph Päper <christoph.paeper@crissov.de>, W3C www-style mailing list <www-style@w3.org>
(12/06/26 1:45), Sylvain Galineau wrote:
> [Christoph Päper:]
>> With 'text-transform' some UAs ignore the code/style distinction already:
>> When you copy text that was case-changed through CSS from a browser into a
>> plain-text environment, it will often be pasted with the casing displayed in
>> the browser instead of the one stored in the source code. I strongly believe
>> this is just as wrong as not copying "display: none" parts to the clipboard.
> 
> I'm not sure why that would be wrong, especially from the point of view of an 
> end user. If someone copies/paste something from a web page into their email
> client and the case changes they are imo far more likely to be surprised and 
> consider it a bug than to think 'oh thank God the browser preserved the state 
> of the markup instead'.

Speaking for end users, wouldn't it be very confusing if what's sent
over the wire is different from what's shown to the user (when script is
disabled)? Since we are likely to have more 'text-transform' features in
the future, I kind of think we should not allow authors to trick users
like this.

Otherwise, I don't see a use case of applying 'text-transform' to input
controls.


Cheers,
Kenny
Received on Tuesday, 26 June 2012 13:28:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT