View Single Post
Old 01-27-2015, 11:11 PM   #19
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Jellby View Post
No guarantee, as far as I know. An oversized image could be downscaled to 100% width and 100% height, which does not preserve aspect ratio.



only if the reader does not ignore auto margins, and it is allowed to.

The problem of that approach (and actually the same more or less applies to the standard SVG wrapper) is that there is no way to access screen height. "height: 100%" might give you a full height, or maybe not.
A height of 100% will give you the full height as long as there's no padding or margins anywhere in any of your enclosing elements, and as long as they're all set to a height of 100%. This approach, of course, requires each SVG image to be in a separate HTML file.

It's too bad EPUB 3 didn't mandate support for CSS 3, because then you'd have vh/vw/vmin/vmax.... *sigh*
dgatwood is offline   Reply With Quote