W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Pseudo-Classes :button and :input

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 16 Sep 2009 11:50:29 -0500
Message-ID: <dd0fbad0909160950p256c39a9vdcb0629f2c291c73@mail.gmail.com>
To: Tobias Herp <Tobias.Herp@gmx.net>
Cc: www-style@w3.org
On Wed, Sep 16, 2009 at 11:01 AM, Tobias Herp <Tobias.Herp@gmx.net> wrote:
> Something like this would not only solve the file input problem but would come in handy for many style sheets which currently need every single of these items listed separately.

Not everyone exposes a text input for <input type=file>.  Chrome,
frex, just shows a button at first, and after selecting a file shows
the filename following the button.

Also, file inputs specifically allow very little interaction via CSS
and JS for security reasons - you don't want a user to be tricked into
entering a filename into what looks like a normal input field, and
have them unknowingly submit a file with the form.

~TJ
Received on Wednesday, 16 September 2009 16:51:31 GMT

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