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

2012-02-06 Thread Ian Hickson
On Wed, 11 Jan 2012, Mounir Lamouri wrote: > On 01/11/2012 01:05 AM, Ian Hickson wrote: > > On Tue, 14 Jun 2011, Rafa�~B Mi�~Becki wrote: > > > > > > We already have required attribute and :valid plus :invalid classes, > > > which are nice. However some may want to display additional warning > >

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

2012-01-10 Thread Mounir Lamouri
On 01/11/2012 01:05 AM, Ian Hickson wrote: On Tue, 14 Jun 2011, Rafa�~B Mi�~Becki wrote: 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 spec

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

2012-01-10 Thread Ian Hickson
On Tue, 14 Jun 2011, Rafa�~B Mi�~Becki wrote: > > 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 cons

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

2011-06-15 Thread Eduard Pascual
2011/6/15 Boris Zbarsky : > A form need not contain its controls.  Consider this HTML document: > >   >   >     >   >   So, indeed, I was missing something. Disregard my previous posts then. Regards, Eduard Pascual

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

2011-06-15 Thread Boris Zbarsky
On 6/15/11 3:12 PM, Eduard Pascual wrote: 2011/6/15 Boris Zbarsky: 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. Sorry, I assumed the simple definition that a form is invali

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

2011-06-15 Thread Eduard Pascual
2011/6/15 Boris Zbarsky : > 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. Sorry, I assumed the simple definition that a form is invalid if it contains invalid input elements

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

2011-06-15 Thread Boris Zbarsky
On 6/15/11 1:08 PM, Mounir Lamouri wrote: Isn't that somewhat related to CSS UI too? Last I checked, CSS UI defined that the pseudo-classes exist, but left when they apply up to the language defining the elements. By the way, for what it worth, I've mention that in this mailing list and got

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

2011-06-15 Thread Mounir Lamouri
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: 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 s

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

2011-06-15 Thread Boris Zbarsky
On 6/15/11 4:31 AM, Eduard Pascual wrote: 2011/6/14 Rafał Miłecki: 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. Cou

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

2011-06-15 Thread Eduard Pascual
2011/6/14 Rafał Miłecki : > 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

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

2011-06-14 Thread Rafał Miłecki
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? Example