#224 multiple stylesheets are not supported

All platforms
open
nobody
Formatting (59)
5
2012-10-08
2012-10-08
Anonymous
No

I have an epub where multiple stylesheets are included in the same xhtml file. The style for italics is defined in the first one (stylesheet.css). The text that should be in italics is not. Now, if I remove the other stylesheet include from Prologue.xhtml, or if I change the order, then the text is in italics.
I removed most of the content of the ebook and it is attached here for testing.

Discussion


  • Anonymous
    2012-10-08

    epub where italics are not shown

     
    Attachments
  • Jan Czarnecki
    Jan Czarnecki
    2012-10-15

    I can confirm this bug. I have been looking for a reason why for some ePubs the internal styles did not seem to be applied and found that this bug was the reason.

    This affects most books that has been converted using Calibre. Calibre will create two styles: page_styles.css (which simply defines page margins) and stylesheet.css (which contains everything else). CoolReader, however, will only pick up the style from page_styles.css and then ignore stylesheet.css, leading to a book with seemingly no style.