Pull request for adding CSS3 'nth-child' pseudo class

49 views
Skip to first unread message

Jens Rutschmann

unread,
Jan 11, 2013, 7:20:44 AM1/11/13
to flying-s...@googlegroups.com
Hi all,

I've just submitted a pull request for a CSS 3 'nth-child' support:
https://github.com/flyingsaucerproject/flyingsaucer/pull/26

Thanks to K15t's Candid who implemented the patch!


Please review.

Cheers,
Jens


Sample HTML:

<html>
<head>

<style>
tr:nth-child(2n) {
background-color: yellow;
}
tr:nth-child(3) {
color: red;
}
tr:nth-child(2n+1) {
background-color: lime;
}
</style>

</head>
<body>

<table>
<tr>
<th>h1</th>
<th>h2</th>
</tr>
<tr>
<td>a1</td>
<td>a2</td>
</tr>
<tr>
<td>b1</td>
<td>b2</td>
</tr>
<tr>
<td>c1</td>
<td>c2</td>
</tr>
<tr>
<td>d1</td>
<td>d2</td>
</tr>
</table>

</body>
</html>

Reply all
Reply to author
Forward
0 new messages