This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8568 - CSS validator does not recognise :last-child
Summary: CSS validator does not recognise :last-child
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: Other All
: P2 minor
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 10:37 UTC by Bernhard Bodenstorfer
Modified: 2011-10-04 20:05 UTC (History)
0 users

See Also:


Attachments
Reduced XHTML file reproducing the bug. (447 bytes, application/xhtml+xml)
2009-12-29 10:37 UTC, Bernhard Bodenstorfer
Details

Description Bernhard Bodenstorfer 2009-12-29 10:37:13 UTC
Created attachment 800 [details]
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 stylesheet.

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; }
Comment 1 Yves Lafon 2011-10-04 20:05:48 UTC
:first-child is in CSS2, but not :last-child which is in CSS3 (and is supported)