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: Brad Kemper <brad.kemper@gmail.com>
Date: Tue, 26 Jun 2012 10:12:34 -0700
Message-Id: <CE037A9B-867F-48F8-886C-F62E5E02B33B@gmail.com>
Cc: Christoph Päper <christoph.paeper@crissov.de>, W3Cwww-style mailing list <www-style@w3.org>
To: Sylvain Galineau <sylvaing@microsoft.com>
On Jun 25, 2012, at 10:45 AM, Sylvain Galineau <sylvaing@microsoft.com> 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'

Well the CSS is just supposed to be stylistic. So what's pasted should either be styled (including color, size, text-transform, etc.) or not. Just because the author of the Web page thought it would look cool to have my name and address in all caps doesn't mean that's how I want it as a user. If I use Word's "paste special" to paste without formatting, or if I paste into something else that normally strips styling (such as another form field), then I'd expect ALL styling to be stripped. Indeed, for names, I think having it in all caps is significantly less useful, in spite of how clever the author thinks he's being. 

(I meant to send this yesterday)
Received on Tuesday, 26 June 2012 17:13:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:00 UTC