Quote:
Originally Posted by ElMiko
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.