Re: Pseudo-Classes :button and :input

On Wed, Sep 16, 2009 at 11:01 AM, Tobias Herp <> 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.


Received on Wednesday, 16 September 2009 16:51:31 UTC