View Single Post
Old 06-24-2020, 07:41 AM   #3
mcdummy
Connoisseur
mcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the rough
 
mcdummy's Avatar
 
Posts: 73
Karma: 7130
Join Date: Apr 2015
Device: PRS-T3
Quote:
Originally Posted by kovidgoyal View Post
It has always done that. It does not apply actual selectors, it simply looks for classes in a selector and if the class name exists in some selector, it is marked as used.
That's rather misleading, since the button for removing unused classes gives the impression that a style file contains all class definitions that are necessary for an ebook, if none is removed.

Many ebooks, e.g., from gutenberg.org, contain style files do do not include all necessary definitions. Making the class removal function selector/element dependent would help to find and add missing definitions.
mcdummy is offline   Reply With Quote