I have an HTML file with CSS3 style, which I want to "accurately" convert to PDF, that's say print all styles which I cannot do with Firefox and Opera, all output PDF lost some styles(shadows or background).
I use nth-child
to show different background color like below, and that is very important to my article:
li:nth-child(2n) {
background: #eee;
text-shadow: 1px 1px 1px #ccc;
}
li:nth-child(2n-1) {
background: #ddd;
text-shadow: 1px 1px 1px #fff;
}