[whatwg] Idea: pseudo-classes :valid and :invalid for whole form?
Boris Zbarsky
bzbarsky at MIT.EDU
Wed Jun 15 10:00:57 PDT 2011
On 6/15/11 4:31 AM, Eduard Pascual wrote:
> 2011/6/14 Rafał Miłecki<zajec5 at gmail.com>:
>> We already have required attribute and :valid plus :invalid classes,
>> which are nice. However some may want to display additional warning
>> when form wasn't filled correctly. Just some single warning, not
>> specific field-related. Could you consider adding form element class
>> for such a purpose?
>
> This would be more a CSS Selectors concern
No, it wouldn't. The point here is to style based on a _form_ that is
invalid. Whether a form is valid or not is up to the language defining
forms, that being HTML.
> and there are already some
> ideas at [1] that would address this.
...
> [1]: http://wiki.csswg.org/spec/selectors4
None of the ideas there address this use case. Nor can they, being pure
CSS proposals.
-Boris
More information about the whatwg
mailing list