W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

[Bug 8568] New: CSS validator does not recognise :last-child

From: <bugzilla@wiggum.w3.org>
Date: Tue, 29 Dec 2009 10:37:14 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-8568-169@http.www.w3.org/Bugs/Public/>

           Summary: CSS validator does not recognise :last-child
           Product: Validator
           Version: HEAD
          Platform: Other
               URL: http://jigsaw.w3.org/css-
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Website
        AssignedTo: dave.null@w3.org
        ReportedBy: bbodi@web.de
         QAContact: www-validator-cvs@w3.org

Created an attachment (id=800)
 --> (http://www.w3.org/Bugs/Public/attachment.cgi?id=800)
Reduced XHTML file reproducing the bug.

The stylesheet for http://www.quirksmode.org/css/firstchild.html contains the
rejected rule
tr.compheader:last-child th {
        border: none;
Note that the :first-child pseudo class appears to work fine in the same

A more minimalistic show case is the attached XHTML file with embedded CSS,
containing the rules:
p:first-child { color: red; }
p:last-child { color: blue; }

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 29 December 2009 10:37:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:40 UTC