[whatwg] Idea: pseudo-classes :valid and :invalid for whole form?
Mounir Lamouri
mounir at lamouri.fr
Wed Jun 15 10:08:44 PDT 2011
On 06/15/2011 07:00 PM, Boris Zbarsky wrote:
> 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.
Isn't that somewhat related to CSS UI too?
By the way, for what it worth, I've mention that in this mailing list
and got no feedback. I'm happy to see someone else asking for it and I
might implement that in Gecko.
--
Mounir
More information about the whatwg
mailing list