Re: [css-ui] Request for :dirty pseudoclass

On Wed, Sep 23, 2009 at 11:42 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> I propose a :dirty pseudoclass be added to CSS UI.

I think ":changed" would be a better name.  An ":unchanged" selector
might also be useful.

> It would match any
> input that the user has significantly interacted with, in the opinion
> of the UA.  In standard browsers it would match as soon as the user
> triggered a change event, but the exact details of when it matches are
> up to the UA.

I don't see why you can't just define it to turn on when the first
change event fires.  Or use some other definition that already exists
in HTML5.  These definitions are already vague enough to accommodate
different input types, while still being well-defined in practice for
the input mechanisms in common use (e.g., text boxes).

Received on Thursday, 24 September 2009 13:43:13 UTC