Hi all,
Today, I was trying out some Standard Ebooks on my Kobo with KOReader
(alternative ereader software, see
https://koreader.rocks), and I
noticed an issue with the title pages. The title page is still showing
the HTML elements with the text next to the image built from the SVG
with the embedded League Spartan font. See the attached screenshot.
I did some digging, and I found out the h1 and p text elements on the
titlepage.xhtml page are supposed to be rendered off-page. I assume it
is rendered off-page as opposed to not including the elements at all or
making them invisible to give screen readers and other accessibility
software access to the text which is shown as an image otherwise.
The text elements are rendered off-page through the 'position: absolute'
CSS property with a left offset of -999em. Unfortunately, KOReader does
not support the 'position' property at all. I've tried to see whether I
could just implement support for the property, but KOReader's epub
render engine is fairly simplistic and 'position' is not a trivial thing
to implement.
I'm not sure where to proceed with this. It's clearly not easy to render
text off-page without also removing it for accessibility and almost any
method I've seen on the internet seems like a hack. I've tried some of
them, but I didn't really get anything useful ('text-indent: -999em' is
the only one that worked, but it still leaves the vertical whitespace
for the text height). It might also be solved without CSS, by removing
the h1 and p elements and adding the information in an 'alt',
'aria-label' or 'aria-description' attribute on the image element
itself. I'm curious to hear if you have any thoughts on the general
problem and whether there might be other ways to solve it that I'm not
seeing. Or maybe I just need to accept that KOReader is missing this
feature.
Wim
P.S. I've also checked Plato, which is another alternative Kobo
software, and it also doesn't support 'position'.