View Single Post
Old 03-11-2018, 01:39 AM   #14
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: 43,869
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, adding a background color would not get overridden by the book CSS, since the color would have to be added via CSS and whether it gets overridden or not depends on CSS specificity rules.

Not to mention that adding a background color to the editor is also wrong because it will give the false impression that the page has a background color when it really does not. The editor's preview panel is not a browser, it is meant to facilitate editing. And adding hidden CSS rules the suer does not know about and cannot change absolutely does not facilitate editing.
kovidgoyal is offline   Reply With Quote