0.9.2
Bug fix
- Viewport size now honours the zoom option (#64).
- Margins of the rendered content now don't collapse with the outside host document (Chrome & Safari, #65).
- Fix active & hover option in
drawURL()
throwing a TypeError in Firefox (#66). - Support
window.matchMedia
(#71).
Other changes:
- The Git repository does not host the packaged sources anymore. The prefered way of installation is through
npm install rasterizehtml
and includingnode_modules/rasterizehtml/dist/rasterizeHTML.allinone.js
. - Experimental clipping support: The rendered document can be clipped around a given element by passing
clip: '.mySelector'
as an option. - A workaround for browsers with flaky resource loading has been removed, as all up-to-date browsers now seem to correctly handle resources.
- Integration tests have been stabilized to pass on Linux systems, too.