Quote:
Originally Posted by RbnJrg
Your code doesn't work well with css2 and epub2  You need to employ css3 and there is not many ereaders that support that protocol right now. The issue is because you are using "vh" (instead of "%") and that measure unit is not well supported by ADE under epub2. Try your code in ADE with an epub2 and see what happens. Even the <figcaption> tag is not supported (under epub2). Indeed, with my code you need to do some calcs and write a bit more, but works, even with epub2 
|
I tested with ePub 2 and it is displayed properly in ADE, but not in Sigil. Actually I made the code with both vh and width="100%" height="98%" in the <svg> to work as fallback, and it seems to be working, as the code is displayed properly in Kobo without the kepub extension, where the vh values aren’t supported.
Have you tested on your side with bad results? If you could please provide me with more information about your tests results I could check if a workaround is possible. I must say that after learning that this code is discouraged by Apple, I am much less keen into putting more work into that! Actually the object-fit property would solve all the problems but,
of course, it isn’t supported by the archaic app/devices of this world

Again, hitting a wall, with no global solution for all devices.