Quote:
Originally Posted by Vanguard3000
Hi, folks! Overall I'm enjoying the enhancements for 1.5.1, but I'm having an issue with the "Delete Unused Stylesheet Selectors" not working as expected. I've got an ePub with multiple stylesheets (a global, and several file-specific), and have removed all instances of most of the styles contained therein, but the delete function does nothing, despite all unused selectors being checked.
I've confirmed the styles aren't in use by a search, through the reports screen, and by deleting all xhtml files except a blank one, and clicking the "Delete Marked Styles" button seems to fail silently (the dialog dismissed but nothing else).
Anyone else seeing this issue? Aside from that, when it worked, it was awesome. I like that it could also remove header-based style definitions.
|
I just tested this on a couple of epubs I was cleaning up. Using the Delete Unused Stylesheet Selectors tool selected the same unused selectors as shown in the CSS Selectors Reports and the cssRemoveUnusedSelectors plugin. After clicking on Delete Marked Styles, eyeballing the 3 stylesheets showed styles have been removed. Running cssRemoveUnusedSelectors again show on unused selectors.
Both the epubs had relatively simple stylesheets with no overly complex selectors. I really could see no reason for having 3 stylesheets.