Pseudo-Classes :button and :input

Hi,

once more coming across the impossibility of styling HTML file input fields properly with CSS, I wondered whether something like this has occured to someone already:

- a pseudo-class :input which would match any textual input, e.g.
  input[type="text"], input[type="password"], textarea,
  and the textual input box of input[type="file"]

- a pseudo-class :button which would match any type of buttons, e.g.
  input[type="button"], input[type="submit"], button,
  and the button part of input[type="file"]

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.

Since there seems to have been a discussion about a pair :input/:disabled, I could live with something like ":textual" as well.

What do you think?

-- 
Cheers,

Tobias

Received on Wednesday, 16 September 2009 16:44:41 UTC