View Single Post
Old Yesterday, 08:07 PM   #23
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,866
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by ElMiko View Post
Okay, that's interesting. Going to have to think about the downside of that versus a stretchy image...
If you want a stretchy image, inside the svg wrapper, instead of

Code:
preserveAspectRatio="xMidYMid meet"
employ

Code:
preserveAspectRatio="xMidYMid slice"
If the image can be distorted, then you don't need a svg wrapper, just the properties "height: 4em; width: 100%".

Quote:
I'm curious, if this were epub3, would there be a perfect solution?
Under epub3 you can use the <img> tag, with the height and width you wish and with the property "objet-fit". Read the following:

https://www.w3schools.com/css/css3_object-fit.asp

Quote:
Or does this kind of conditional formatting need to be defined at the OS/application level?
No, it doesn't.
RbnJrg is offline   Reply With Quote