View Single Post
Old 05-27-2020, 03:46 PM   #1
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
CSS Processing order

I see that KoReader can have user created styles (in /styletweaks) .

When reading a book there may also be other stylesheets that will influence presentation. Such as, say, one called "book.css" within an EPUB, (the so-called "embedded style").

Then there is the inbuilt "epub.css".

I'm trying to understand in what order the various css stylesheets will be processed.

Understanding this would explain why I was getting indented paragraphs on the first line of a chapter when I wasn't expecting it from the book's own styles. I have since edited that EPUB to display correctly but would like to know the "cascade" order as it might help me correct the presentation of other books by KoReader if I find others with the same problem.

An authoritative view on this would be appreciated.

BobC
BobC is offline   Reply With Quote