niklasvh/html2canvas — pull request #224 by mjaggard (2013-06-07 11:37:44+00:00)
Title: Simple rotation

I've added support and a test case for simple rotation of images. It will work on images that are rotated by 90, 180 or 270 degrees. It also partially works on images rotated by other amounts - the image is rotated correctly but any borders are not rotated.

Rotations that are combined with another transformation on a single HTML element are ignored.

I have not attempted to handle rotation of text at this time.

Selenium test cases appear to work in Chrome, Firefox and IE 10.

Code is copyright Daeja Image Systems Ltd 2013 and is licensed under MIT to fit your project.