View Single Post
Old 07-17-2023, 02:54 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,921
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DrChiper View Post
Well, I did some investigations and found that of my 20K+ books just about 30 did use the content property, and most of them in the form of:
Code:
.something::after {
  content: " ";
 . . .
}
so you would not see it anyway.

My technical library however made intensive usage of that construct, like:
Code:
section[data-type="titlepage"]:after {
  content: url(../Images/ebook.png);
  position: absolute;
  bottom: 0;
  max-width: 100%;
}
Placing such a book on my kobo did reveal that the picture did show up on my PC (within calibre), but not on the kobo (=empty space).
Therefore my preliminary conclusion is that kobo ignores the content property. The ::after (and ::before) pseudo-element(s) do work however.

To be complete: the used ebooks were epubs, not kepub.
Pseudo elements will not work with ePub on a Kobo because the version of RMSDK (ADE) used to read ePub is too old. It should work with KePub.

This is why these eBooks should not be using Pseudo elememnts and should be using spans instead. It's best ti make the ePub as backwards compatible as possible.
JSWolf is offline   Reply With Quote