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 when form

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 consider

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

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

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

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łeckizaj...@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

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łeckizaj...@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

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

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

2011-06-15 Thread Eduard Pascual
2011/6/15 Boris Zbarsky bzbar...@mit.edu: 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

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 Zbarskybzbar...@mit.edu: 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

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

2011-06-15 Thread Eduard Pascual
2011/6/15 Boris Zbarsky bzbar...@mit.edu: A form need not contain its controls.  Consider this HTML document:  !DOCTYPE html  form id=myform action=something    input type=submit  /form  input type=number value=abracadabra form=myform So, indeed, I was missing something. Disregard my

[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?