You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a simplified HTML example for what I believe if a bug: test.html.txt
and the PDF I get with WeasyPrint 58.1: test.pdf
What I expected is for the pink rectangles in the upper page margin to be positioned similar to the pink rectangles in the lower page margin. In other words, I was expecting the pink rectangles to stay within the blue rectangles.
It seems like the inner div margin handling is correct when the page margin box is vertical-align: top (as seen in the lower page margin) but incorrect when vertical-align:bottom (as seen in the upper page margin).
The height + top + bottom margins of the pink inner divs sum to exactly to the height of the blue page margin boxes. So I see no reason for the pink inner divs to overflow.
Smells like a calculation bug.
The text was updated successfully, but these errors were encountered:
Surprisingly, Prince gives the same result as WeasyPrint here (except from the widths, because of #58, but that’s another story). So… I’m not sure that it’s a bug. I have to check more precisely the different specifications, and hope to find something on this particular example.
Here is a simplified HTML example for what I believe if a bug:
test.html.txt
and the PDF I get with WeasyPrint 58.1:
test.pdf
What I expected is for the pink rectangles in the upper page margin to be positioned similar to the pink rectangles in the lower page margin. In other words, I was expecting the pink rectangles to stay within the blue rectangles.
It seems like the inner div margin handling is correct when the page margin box is
vertical-align: top
(as seen in the lower page margin) but incorrect whenvertical-align:bottom
(as seen in the upper page margin).The height + top + bottom margins of the pink inner divs sum to exactly to the height of the blue page margin boxes. So I see no reason for the pink inner divs to overflow.
Smells like a calculation bug.
The text was updated successfully, but these errors were encountered: