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

[css3-ui] :text-input pseudoclass

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 3 Nov 2009 11:54:11 -0800
Message-ID: <dd0fbad0911031154u6c03a6c8j5eb652fc346ff3c2@mail.gmail.com>
To: www-style list <www-style@w3.org>
I would like to see a :text-input pseudoclass in CSS3 UI.  It would
match against any input which is a text input.  In HTML, this means
<input type=text>, <input> (no type), and <input type=unknown>.

This is necessary because there are an infinite number of possible
values for type that would produce a text input.  Right now the only
way to safely match all text inputs is to do
input:not([type=password]):not([type=submit]):not([type=date])...

I commonly use inputs without a type, while generated content
(produced by script plugins, for example) usually includes type=text,
and I want to style these the same easily.  As well, I'd like
currently unsupported input types (like date in anything but Opera) to
be styled like text inputs while they're unsupported, but be styled
like proper date inputs later when they're recognized as such.

~TJ
Received on Tuesday, 3 November 2009 19:54:58 GMT

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