View Single Post
Old 08-05-2013, 05:40 AM   #21
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by ibu View Post
@Rev. Bob
You are talking about CSS specifications of the W3C.
Quite so; the whole point of CSS is that it's a language that behaves in predictable ways. Therefore, the CSS spec is the logical foundation.

Quote:
Originally Posted by ibu
But I like to understand the interactions of the Kobo software (the reading options of the GUI) and kepub-book.css

One simple test shows to me, that the kepub.css with "!important" does not win over the reading option "font-size".
Nor should it.

Imagine you've defined a user stylesheet for your browser, you're visiting a site that has its own stylesheet, and you've used the hotkeys to make the font size larger. The browser's duty is to apply the site sheet, then your user sheet, then the hotkey changes...in that order. In this case, the individual EPUB's CSS is the site sheet, kepub.css is your user sheet, and the GUI controls are the hotkeys; the GUI is supposed to win. Otherwise, the device is misbehaving and a bug report is in order.

In other words, the further an option is from the user's control, the lower its priority becomes. The whole theory is to let users make their own choices as much as possible, preventing sites from overriding them.

Last edited by Rev. Bob; 08-05-2013 at 05:44 AM.
Rev. Bob is offline   Reply With Quote