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

halfbit
  • 3,773
  • 2
  • 34
  • 47

2 Answers2

0

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

Symphony0084
  • 1,257
  • 16
  • 33
-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?

Community
  • 1
  • 1
z--
  • 2,186
  • 17
  • 33
  • 2
    wkhtmltopdf is like an own browser, and reacts different than safari & chrome – halfbit Aug 03 '15 at 19:24
  • 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``? – z-- Aug 04 '15 at 08:44
  • 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? – halfbit Aug 04 '15 at 15:47
  • Cases of "other" browsers are OK and are needed as well. But wkhtmltopdf is for printing and that needs specific test cases. – z-- Aug 07 '15 at 16:44
  • 1
    hm, but you need optical testcase check in both cases, dont you? – halfbit Aug 07 '15 at 21:35