Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.07k stars 672 forks source link

Table grid not displayed correctly in production enviroment #2245

Open patrick-norton-92 opened 2 weeks ago

patrick-norton-92 commented 2 weeks ago

I am having trouble creating a grid layout. The layout works fine locally, but in production it doesn't seem to be working. file:///home/paddy/IdeaProjects/farmeye-core-2/farmeye-doc-generator/src/main/resources/templates/report/eit/micronutrients.html

The css in another file .table-grid { display: grid; grid-template-columns: repeat(3, 1fr); /* Adjust the number of columns */ gap: 10px; padding: 10px; } For reference we are a spring boot java application, and use WeasyPrint along with thymeleaf in a docker enviroment to build the webpages and then weasy print turns it all into pdf's for downloading.
The issue is with this file issue

liZe commented 2 weeks ago

Hi!

Grid has been added quite recently to WeasyPrint. Do you use a recent version of WeasyPrint on production?