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

Pseudo-Classes :button and :input

From: Tobias Herp <Tobias.Herp@gmx.net>
Date: Wed, 16 Sep 2009 18:01:01 +0200
Message-ID: <20090916160101.99190@gmx.net>
To: www-style@w3.org

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?


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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC