View Single Post
Old 06-24-2025, 06:30 PM   #36
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: 80,138
Karma: 148951761
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 DNSB View Post
I was under the impression that ADE2 disregarding the entire style sheet after an error was triggered by a structural error in the stylesheet not by an correctly structured unknown item. A missing { or } for instance.
RMSDK (ADE3 version) used by Kobo will ignore the entire stylesheet with what is thought to be an error.

Here is code that ADE 2.0.1 thinks is an error from a StandardEbooks CSS. It's code that will not work in most cases anyway. So there's no need for it.

Code:
@media all and (prefers-color-scheme: dark) {
  img.epub-type-se-image-color-depth-black-on-transparent {
    filter: invert(100%);
  }
  img.epub-type-se-image-color-depth-black-on-transparent.epub-type-se-image-style-realistic {
    background: currentColor;
    filter: none;
  }
}
@media all and (prefers-color-scheme) {
  img.epub-type-se-image-color-depth-black-on-transparent:not(.epub-type-se-image-style-realistic) {
    background: transparent !important;
  }
}
JSWolf is offline   Reply With Quote