W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] Idea: pseudo-classes :valid and :invalid for whole form?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 15 Jun 2011 13:00:57 -0400
Message-ID: <4DF8E549.5080906@mit.edu>
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
Received on Wednesday, 15 June 2011 10:00:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC