Quote:
Originally Posted by rkomar
I would guess they leave the extra CSS because it does no harm (besides slightly increasing the epub size), while removing something that turns out to be useful later just leads to even more work. Better safe than sorry.
|
In Sigil, under the Tools menu, Delete unused stylesheet classes. I generally run this after I have finished editing an ebook which involves replacing the existing stylesheet classes with my collection. If I need to re-edit it, I just copy and paste the master stylesheet. The cleanup takes about 3 seconds at the most. So far I haven't run into a used stylesheet class being removed.
I have run into a fair number of epubs where attempting to validate the stylesheet with W3C has failed. Quite a few of those give errors with either FlightCrew or epubcheck as well making me wonder about some publishers quality control.