wkhtmltopdf / wkhtmltopdf

Convert HTML to PDF using Webkit (QtWebKit)
https://wkhtmltopdf.org
GNU Lesser General Public License v3.0
13.97k stars 1.82k forks source link

-webkit-transform rotate not applied in svg #3838

Open nicolasr75 opened 6 years ago

nicolasr75 commented 6 years ago

I have the following html with an embedded svg. The rotation is applied by Chrome but not by wkhtmltopdf. Is this a bug or is it simply not supported?

<!doctype html>
<html lang='en'>
<head>
</head>
<body>
    <svg xmlns='http://www.w3.org/2000/svg' style="background: yellow; width: 5cm; height: 5cm">
        <rect class="test" width="100" height="80" style="fill:rgb(0,0,255);
            -webkit-transform-origin: 0 0;
            -webkit-transform: rotate(20deg); " />
    </svg>
</body>
</html>
alloylab commented 6 years ago

have you tried this on 0.12.5?

nicolasr75 commented 6 years ago

I have not tried again since March but back then I had used 0.12.4. You think there might be a change in 0.12.5 that could make it work?