Is it expected that CSS calc() wouldn't work?

  • I'm trying to apply some styles with calc() css function and it is completely ignored in PDF render, is this expected?

  • administrators

    it is expected depending on the recipe that you are using, for example phantom recipe does not support it, because phantomjs instead supports -webkit-calc() but not calc(), not sure if wkhtmltopdf supports it, it really depends on the css features that the internal html engine supports. for example i think chrome recipe support it because it uses chrome engine under the hood, but now sure how the calc() and layout position in that case will behave when it is translated to pdf, you will need to try and see if it works for your case.

  • thank you, I'm using wkhtmltopdf

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.