[Webkit-unassigned] [Bug 110304] Add setting to add viewport tag to image documents
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 22 09:58:27 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=110304
--- Comment #7 from John Mellor <johnme at chromium.org> 2013-02-22 10:00:49 PST ---
(In reply to comment #6)
> (In reply to comment #4)
> > (From update of attachment 189242 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=189242&action=review
> >
> > What happens when the image is very large? I expect it will look cut off. It would be better to have an exact fit in that case, especially given that deviceScaleFactor means we can usually have a pageScaleFactor of 0.5 to get the true resolution of the image.
>
> Yea I'm not sure what behavior gives best user experience. Let's have some discussion with UX folks when we have time.
I agree with Alex, that it would be better to fit the image to the screen when it is too big, as happens on desktop. A simple way to do that would be to add "max-width: 100%;" to the <img> element. You would still be able to pinch-zoom in etc (though we should probably double-check the ensuing zoom limits, and that double-tap does something sensible).
Even better would be to fit both the width and height of the image within the window; perhaps simply enabling the shouldShrinkToFit functionality would enable this (though we might want to remove that click listener on touchscreens)?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list