View Single Post
Old 01-28-2019, 09:15 PM   #8
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Quote:
Originally Posted by RbnJrg View Post
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.
momoha is offline   Reply With Quote