what css level does wkhtmltopdf support 8/2015
Asked Answered
R

2

9

I am using wkhtmltopdf 0.12.1 (with patched qt)

While most CSS3 stuff - at least what I use - works fine, some need a '-webkit-' prefix, like transform

Others, like border-image seem to work only with the short form (and prefixed). ie. border-image-xxx, seem not to work, SVG seems not to be supported at all

So the question: How can I find out, what level of CSS3 support wkhtmltopdf has? Trial and error is very time consuming, and probably erronous, because of typos.

edid: based on answer

I am testing with Chrome, FF, IE, Opera & safari (as possible with windows), wkhtmltopdf is like an own browser - sorringliy its seems not big enough to get a place in 'official' lists

Ridglee answered 2/8, 2015 at 19:22 Comment(1)
Still no concrete answer to this?Funky
S
0

It uses CSS2 - to my knowledge, no CSS3 properties will work.

Strophanthin answered 19/3, 2020 at 6:23 Comment(0)
V
-2

wkhtmltopdf uses webkit. This is used by Safari and Chrome as well.

Details here: https://en.wikipedia.org/wiki/WebKit

So if you check http://caniuse.com for these browsers you should get a good result.

Final tests are still a good thing though.

Some examples of questions asked here

wkhtmltopdf css sizes in cm/mm

Does wkhtmltopdf respect css font color?

Does wkHTMLtoPDF support @page rules?

Vivianaviviane answered 3/8, 2015 at 18:7 Comment(5)
wkhtmltopdf is like an own browser, and reacts different than safari & chromeRidglee
Thanks for the comment. So there is a need for a suite of test cases for wkhtmltopdf. I wonder where we find candidates for an existing suite to be run through wkhtmltopdf?Vivianaviviane
hm, why an own set? In prinziple the cases for "other" browsers should do in a first step, ok, not tests for pdf specific things like page break, but css sould work. or not?Ridglee
Cases of "other" browsers are OK and are needed as well. But wkhtmltopdf is for printing and that needs specific test cases.Vivianaviviane
hm, but you need optical testcase check in both cases, dont you?Ridglee

© 2022 - 2024 — McMap. All rights reserved.