Skip to content

Debugging Apple Books

Helma van der Linden edited this page Sep 12, 2020 · 1 revision

Notes on debugging Apple Books

Issue #86 (links are hardly visible in Night mode) sparked a search on the internet. The main result:

  • the links were all internal links
  • the links were marked as 'visited'
  • the epub3.css theme colored the visited links dark grey
  • external links somehow don't get the 'visited' attribute

Apple Books alters the CSS of the ePub by adding an indication which color mode is used and sets the colors accordingly. Info here: https://stackoverflow.com/questions/14305164/any-way-to-detect-if-dark-theme-is-active-in-ibooks-from-within-epub

All colors are described here: https://gist.github.com/adaptivegarage/aef95223fab9a39db45f

Debug the CSS in Apple Books on the Mac by using the web inspector:

http://epubsecrets.com/how-to-access-the-web-inspector-for-desktop-ibooks.php

Clone this wiki locally