W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Error (nit) in CSS3 selectors, :first-child

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Thu, 07 Apr 2005 14:32:38 +0200
Message-ID: <42552866.3010704@students.cs.uu.nl>
To: www-style@w3.org

The last example of the :first-child pseudo-class [1] has a small error:

| The following two selectors are equivalent:
|
| * > a:first-child   /* a is first child of any element */
| a:first-child       /* Same */

This is not true if a is the root element...


~Grauw

[1] http://www.w3.org/TR/css3-selectors/#first-child-pseudo

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Thursday, 7 April 2005 12:33:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT