W3C home > Mailing lists > Public > www-style@w3.org > July 2010

Re: :invalid pseudo class

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 24 Jul 2010 14:01:44 -0700
Message-ID: <AANLkTinB3h=MkQ+JofW0hGD8BMxHfVo0snk5qK4=ODA3@mail.gmail.com>
To: Estelle Weyl <estelle@weyl.org>
Cc: "www-style@w3.org CSS" <www-style@w3.org>
On Fri, Jul 23, 2010 at 10:35 PM, Estelle Weyl <estelle@weyl.org> wrote:
> Is there an :invalid pseudoclass? I can't find it in the documentation, but
> when a form field is invalid,  :invalid { background-color: red; } works.
> See http://standardista.com/webkit/ch6/email.html

Not all pseudos are defined by CSS itself - host languages are allowed
to define their own.  In particular, HTML5 defines a number of
pseudoclasses, including :invalid:

Received on Saturday, 24 July 2010 21:02:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:48 UTC