View Single Post
Old 07-03-2020, 05:20 AM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by mcdummy View Post
So far, it does not provide an automatic deletion of unused classes, but there seems to be some work on implementing this tool.
I will be astonished if they do. You cannot in general conclude a class is unused if it exists in any selector. For a trivial example:

Code:
:not(.center)
This rule will not match <p class="center"> but the class is still used, since the elements that selector matches will change if you remove the class.

Last edited by kovidgoyal; 07-03-2020 at 05:38 AM.
kovidgoyal is offline   Reply With Quote