Quote:
Originally Posted by ibu
@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.