Wkhtmltopdf css support. 12. . Load styles, fonts, images, and layouts correc...
Wkhtmltopdf css support. 12. . Load styles, fonts, images, and layouts correctly for accurate, high-quality PDF output. pdf { color:var(--mycolor); } doesn't (rule ignored). Jul 13, 2019 · Using Flex/CSS with wkhtmltopdf Ask Question Asked 6 years, 7 months ago Modified 2 years, 11 months ago Sep 18, 2018 · do7a15 on Sep 18, 2018 Author Well, CSS3 wasn't in webkit in 2011 (version, used by wkhtmltopdf) what is the solution? Jun 24, 2025 · SVG: Often has limited or no support. Apr 3, 2022 · I'm using wkhtmltopdf 0. But even that version pretty recent doesn't seem to support CSS variables. In essence, wkhtmltopdf 's rendering capabilities are more akin to a browser from the early 2010s, before CSS3 and HTML5 became widely adopted and standardized. pdf { color:#123; } works, but :root { --mycolor:#123; } . wkhtmltopdf Version Operating System and Version A detailed description of the issue, along with a test case (with HTML/CSS/JS) to duplicate the issue, so that we can look into it Support Need help? Try the mailing list.