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
But in WeasyPrint an image with an explicit height directive uses the image's intrinsic width, rather than scaling it so as to keep its intrinsic ratio to fit with the explicit height: http://www.stripey.com/demo/weasyprint/squished_cattle.pdf
When setting an image's height, its width isn't being calculated to scale.
For example, see this page, which renders as expected in Firefox:
http://www.stripey.com/demo/weasyprint/squished_cattle.html
But in WeasyPrint an image with an explicit
height
directive uses the image's intrinsic width, rather than scaling it so as to keep its intrinsic ratio to fit with the explicitheight
: http://www.stripey.com/demo/weasyprint/squished_cattle.pdfThe relevant part of the spec — I think the third paragraph's second option (starting “or if”) applies.
T'other way round works fine: specifying just a width causes the appropriate height to be calculated.
The text was updated successfully, but these errors were encountered: