MantisBT - NetSurf
View Issue Details
0002681NetSurfLayoutpublic2019-07-09 17:212019-07-13 18:12
ReporterDave Higton 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformBeagleBoard xMOSRISC OSOS Version5.27
Product Version3.9 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #4714
URL of problem page
Summary0002681: PNGs displayed with wrong aspect ratio
DescriptionEmail flyers from 7dayshop have PNG images that display at about half width - all the image is shown but the aspect ratio is very wrong. The style attributes limit its maximum width, but I think NS must be forgetting to constrain the height so as to maintain the proportion.

I can't simply post the HTML content of the flyer, or the link, without a lot of work, because they link to my 7DayShop account, so I'll have to hope that the "style" excerpt below is sufficient to trace the problem.
Additional Informationstyle="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; clear: both; height: auto; float: none; border: none; width: 100%; max-width: 300px; display: block;"

Doubling the max-width value allows the image to be displayed correctly.
TagsNo tags attached.
Attached Files? Demo (449,028) 2019-07-13 18:11
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=600&type=bug

Notes
(0001986)
Dave Higton   
2019-07-13 18:12   
The file "Demo" has been stripped down from the original email attachment, and, hopefully, depersonalised. It demonstrates the issue I'm seeing.

Issue History
2019-07-09 17:21Dave HigtonNew Issue
2019-07-13 18:11Dave HigtonFile Added: Demo
2019-07-13 18:12Dave HigtonNote Added: 0001986