Quote:
Originally Posted by RbnJrg
Ok. But now we have another issue; if you want only one epub, the property "calc" under epub2 is not well supported  You need to work only with css2 so ereaders based on epub2/epub3 will be able to open the epub without problems.
|
I tested the calc codes on my dinosaur Kobo, without the kepub extension, where literally any innovative code won’t work, and they are both working fine, but it is a strange behaviour.
In <svg> of the embedded SVG, it seems to be fully supported. If I remove it, the image is not displayed correctly, and when I insert it back, the image is fine.
But inside the <img> of the linked SVG, it creates problems only if it is placed first, and it is fine when placed last (it is probably just ignored).
Like, this isn’t displayed properly:
Code:
<p class="credits"><img style="width: calc(20pt*73.275/17.408); height: 20pt;" src="../Images/canada.svg" alt=""/></p>
This is fine:
Like, this isn’t displayed properly:
Code:
<p class="credits"><img style="height: 20pt; width: calc(20pt*73.275/17.408); " src="../Images/canada.svg" alt=""/></p>
I will ask other people to test it also, let’s see. Sadly I don’t have access to other ereader... But the vast majority of our market uses Kobo only.