- From: Nikita Popov <privat@ni-po.com>
- Date: Tue, 03 Nov 2009 22:36:52 +0100
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: www-style@w3.org
Tab Atkins Jr. schrieb: > 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 Why not to use input:not([type]), input[type=text]? Nikita Popov
Received on Tuesday, 3 November 2009 22:09:02 UTC