MantisBT - NetSurf
View Issue Details
0002678NetSurfLayoutpublic2019-06-25 02:362019-07-19 09:24
ReporterHarriet Bazley 
Assigned ToMichael Drake 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformIyonixOSRISC OSOS Version5.22
Product Version 
Target VersionFixed in Version 
Fixed in CI build #4712
Reported in CI build #4647
URL of problem page
Summary0002678: Viewpoint width and height units cause images to fail to display
DescriptionIf a website uses CSS like

img { max-height: 90vh; }
in an attempt to resize images to suit small screens, Netsurf doesn't display such images at all. It's not a case of not recognising 'vh' and 'vw' as valid units - if you substitute genuine gibberish, e.g. "max-height: 90hjb", then Netsurf will degrade gracefully and simply ignore the CSS altogether. And experiment suggests that it does obey the max-height attribute.
But Netsurf seems to recognise "vh" and "vw" as valid CSS yet respond by refusing to display the graphic in question..

Steps To ReproduceOpen attached sample file. Edit max-height line to various different values.
TagsNo tags attached.
Attached Files? Newfile (740) 2019-06-25 02:36
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=599&type=bug

Notes
(0001971)
Harriet Bazley   
2019-06-27 14:08   
I just checked - this WORKS correctly in the old version v4358. The image not only displays but resizes as expected.

It does not work on the latest version, v4704 (tried on ARMiniX).
(0001974)
Michael Drake   
2019-06-30 11:35   
Fixed, thanks for the report.
(0001996)
Vincent Sanders   
2019-07-19 09:24   
we believe this issue has been resolved in NetSurf 3.9

Issue History
2019-06-25 02:36Harriet BazleyNew Issue
2019-06-25 02:36Harriet BazleyFile Added: Newfile
2019-06-27 14:08Harriet BazleyNote Added: 0001971
2019-06-30 11:35Michael DrakeAssigned To => Michael Drake
2019-06-30 11:35Michael DrakeStatusnew => resolved
2019-06-30 11:35Michael DrakeResolutionopen => fixed
2019-06-30 11:35Michael DrakeDescription Updatedbug_revision_view_page.php?rev_id=2106#r2106
2019-06-30 11:35Michael DrakeFixed in CI build # => 4712
2019-06-30 11:35Michael DrakeNote Added: 0001974
2019-07-19 09:24Vincent SandersStatusresolved => closed
2019-07-19 09:24Vincent SandersNote Added: 0001996