readium/readium — pull request #62 by schmidsi (2012-04-05 15:10:34+00:00)
Title: integrate a css region polyfill

Hi

As in readium/readium#61 mentioned, I've integrated now my polyfill. This is what it's doing:

* Integrate Modernizr
* Add a Modernizr css-regions Test
* Load the polyfill scripts
* If the browser doesn't support css-regions, it activates the polyfill in *Readium.Views.ReflowablePaginationView.renderPages*

It works quite nice so far, but here are some problems/todos I know about:

* The bundled ePUB: *sample-tex-mml.epub* does not render perfectly. Maybe because of the heavy use of other Javascript.
* If there is one big image on the first page, it leaves the first page blank and shrinks this image to the second page. This is a bug in the polyfill. I hope I can fix it soon.
* Maybe the polyfill has performance issues with big contents, because it wraps every word in a span.

I'm looking forward what you guys think about this.

Best

Simon