Groups
Groups
Sign in
Groups
Groups
Flying Saucer Developers
Conversations
About
Send feedback
Help
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 AM
1/11/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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