Margin box size in percentage
This issue concerns the "margins_grid" branch where margins boxes are calculated with CSS grid.
If a margin box size is declared as a percentage, the rendering is not correct.
The dimensions of the margins boxes are given at the grid level in their parent div.
Currently, the dimension also applies to the margin box div when it is not needed. This has the effect that the margin box has the wrong size.
The declaration of "width" and max "width" for the margin box div (.pagedjs_margin-top-center
) should be deleted because these are declared in the parent div (.pagedjs_margin-top
) with the grid.
HTML: isuue-62.html
Result: isuue-62-wrong.pdf
The result we should get: issue-62-correct.pdf