Fix css rotation for canvas and text layer.
Merge pull request #3791 from brendandahl/css-rotate

Fix css rotation for canvas and text layer.