- From: Schalk Neethling <sneethling@mozilla.com>
- Date: Mon, 12 Mar 2012 07:43:26 -0700 (PDT)
- To: Mounir Lamouri <mounir@lamouri.fr>
- Cc: www-style@w3.org
Mounir,
I believe what Stefan wants is to style fields that are empty, but not necessarily required, different so input:required:invalid is not going to work in this situation.
Regards,
Schalk
----- Original Message -----
From: "Mounir Lamouri" <mounir@lamouri.fr>
To: www-style@w3.org
Sent: Monday, March 12, 2012 4:37:19 PM
Subject: Re: [selectors4] :empty psuedo class and input fields
On 03/12/2012 11:03 AM, Stefan Wallin wrote:
> This strikes a chord with me, I'd really like to see the possibility to
> style input fields that do not fit to be classed as required but are
> still empty to be styled differently. Today this has to be done with DOM
> scripting, neither input[value=""] or input:empty works as I think it
> should work.
This use case can already be solved like this:
input:required:invalid {
}
Assuming you are using the required attribute as specified in HTML.
Regarding the general proposal. That might be useful assuming there are
use cases different from the one above.
--
Mounir
Received on Monday, 12 March 2012 14:43:55 UTC