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:
http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#pseudo-classes.

~TJ
Received on Saturday, 24 July 2010 21:02:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:29 GMT