Quote:
Originally Posted by kovidgoyal
Nothing in life (and particularly in ebook rendering) is ever guaranteed. [...] As for compliance, my views on compliance are well known.
|
Of course, with "guaranteed" I mean "guaranteed in (hypothetical) spec-compliant readers". The point with compliance is that if you make sure the code is compliant and it fails, you can blame the others. In practice it gives little more than personal satisfaction.
Quote:
I know of no reader that supports svg where height:100% does not work provided you use a single html file with only the one svg image in it, as is shown in the demo I linked to.
|
Not a reader
per se, but the HTML-to-PDF renderer
Prince does not work nicely with "height: 100%" in any situation I could find.
Anyway, any of the suggested solutions are probably good enough in most situations, I just expect the original poster (and anyone else reading this) to understand why and how it may fail.