You might want to open a bug on the
calibre bug-tracker and attach the file being converted. I saw this in the release notes for 2.21
Quote:
Conversion: Use a new (written from scratch) implementation of CSS Level 3 selectors that fixes various bugs in handling of the more advanced/uncommon CSS selectors such as nth-last-child()
|
and it looks as if your issue is related to that.