New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rotated text by CSS cannot be captured by html2canvas #184
Comments
css transforms aren't supported yet |
thanks for replying. I then have to figure out another way to display that vertical text or display it horizontally instead. |
Any idea on when this will be supported. I kind of need this pretty bad (css3 matrix3d in particular) |
Try adding the text content into a span. It worked for me. Still don't know why though... |
@MaitreyJukar wrap text content into a span does not work for me, sad |
Does anyone find any solution for rotated divs screenshot? |
I'm displaying an infographic which contains images, charts and text. Since vertical text in the charts doesn't work, what I'm doing is using canvg to convert each of those charts (which are in c3 SVG) to a canvas, o even going one step further to convert said canvas to an image. This can be done recursively for any SVG group in the DOM. |
How i can save div with CSS transform: perspective ? |
How i can save div with CSS -webkit-mask-box-image: url(http://kz-c2.qiniudn.com/a.svg); ? |
@zk7035 As each CSS property needs to be manually built to be supported, there are a number of properties that are not yet supported. (https://github.com/niklasvh/html2canvas#browser-compatibility) Details: #246 |
Rotate worked form me but with a span I used one of the answers above. Here is what I did in my style I put a class .vertical { the in my element a div position inline styled relative and whithin the div a span with class vertical.
Hope it helps someone, saludos |
I used css
.heading1 {
-moz-transform: rotate(270deg);
-webkit-transform: rotate(270deg) ;
-o-transform: rotate(270deg) ;
-ms-transform: rotate(270deg) ;
transform: rotate(270deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=4);
}
to display a rotated headline for a chart. then i use html2cavas to 'screenshot' the page, this rotated text cannot be proper displayed. It become a vertical text in which each letter is placed horizontally but aligned with each other vertically. and it looks ugly.
The text was updated successfully, but these errors were encountered: