View Single Post
Old 05-02-2012, 02:20 PM   #206
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,463
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
All rules in the css are scoped inside selectors, which means they apply only to the elements matched by the selectors. @font-face rules do not have selectors.

Quote:
Originally Posted by paulfiera View Post
But...when those fonts no longer exist because they have been removed before the conversion, wouldn't it make sense to remove the declarations altogether?
Certainly, however, it just isn't worth the effort. There are all sorts of redundancies in the markup of a typical book. This is just one example. I reserve my cleanup efforts to the cases where the cleanup makes some measurable impact on the performance of the resulting epub. But, that's not to say that I will refuse a patch for it.
kovidgoyal is online now   Reply With Quote