- From: L. David Baron <dbaron@dbaron.org>
- Date: Sat, 24 Jul 2010 14:37:47 -0700
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: Estelle Weyl <estelle@weyl.org>, "www-style@w3.org CSS" <www-style@w3.org>
On Saturday 2010-07-24 14:01 -0700, Tab Atkins Jr. wrote:
> 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.
No, they are defined by CSS ( http://www.w3.org/TR/css3-ui/ ), and
host languages don't get to define their own. But the HTML spec
describes the details of when those CSS pseudoclasses apply to HTML
controls, which is a reasonable division between the specs.
-David
--
L. David Baron http://dbaron.org/
Mozilla Corporation http://www.mozilla.com/
Received on Saturday, 24 July 2010 21:38:19 UTC