I'm trying to convert my HTML page to PDF using wkhtmltopdf. The CSS is working completely fine when I'm rendering in the browser. It is using flex-box. I know flex-box doesn't work as expected and we have to use webkit for that purpose.
Result of PDF conversion (Faulty CSS)

Actual HTML page with CSS working fine.

CSS for the div section
display: -webkit-flex;
display: flex;
margin: 4px 0 0 0;
justify-content: flex-start;
flex-wrap: wrap;
-webkit-box-flex: 1;
-webkit-flex-wrap: wrap;
Can anyone help with Flexbox mystery?