Calibre 6.11: "Remove CSS Rules" and "Check Book" Conflicts
I'm not sure what to do with this. With the new Calibre 6.11, things have changed with either the Remove CSS Rules or the Check Book tools and they're conflicting a bit.
With a book earlier today, after doing a Remove CSS Rules with all 4 boxes checked (Remove Unused Class Attributes, Merge CSS Rules with Identical Selectors, Merge CSS Rules with Identical Properties and Remove Unreferenced Style Sheets), Check Book complained that my standard paragraph rule should have been BEFORE some composite rules using it (h2 + p, etc.). No problem, I moved p up a bit in my stylesheet.
But, just now, I did the same thing and Check Book is now complaining that "div.letter p" should be AFTER some composite rules. The problem is that in my original layout, "div.letter p" WAS after those rules. But, since "p" and "div.letter p" are the same, Remove CSS Rules merged them and put the result BEFORE those rules. Unfortunately, "p" has to be BEFORE those rules and "div.letter p" has to be AFTER them. So, they conflict.
I can (probably) work around this by turning off those Merge rules in Remove CSS Rules. But, Calibre 6.10 and earlier didn't complain about this. It'd be nice if Calibre could check positioning rules before merging "identicals." But, I'm thinking the processing required might be too much.
Anyway, I'm going to turn off the Merge options since that's merely stylesheet cosmetics. But, I thought I'd report it.
Last edited by enuddleyarbl; 01-06-2023 at 05:44 PM.
|