Modernizr/Modernizr — pull request #717 by bmcustodio (2012-09-28 10:41:46+00:00)
Title: Added 'first-child' pseudo-selector test.

This is pretty much just an small rewrite of the 'css-lastchild.js' feature test already present on Modernizr to allow for the detection of browser support for the `:first-child` pseudo-selector. I am pretty sure that every browser that supports `:last-child` also supports `:first-child` (and vice-versa), but if I am using `:first-child` anywhere I'd rather write

```css
.firstchild {
/* (...) */
}
.no-firstchild {
/* (...) */
}
```

than `.lastchild` and `.no-lastchild`.

[![Build Status](https://secure.travis-ci.org/bmcustodio/Modernizr.png)](http://travis-ci.org/bmcustodio/Modernizr)