Bug 89008 - [Qt][WK2] For certain "viewport" setting, browser shows content to fit to width
Summary: [Qt][WK2] For certain "viewport" setting, browser shows content to fit to width
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 09:15 PDT by Tao.Yu
Modified: 2014-02-03 03:21 PST (History)
7 users (show)

See Also:


Attachments
Test Content (288.67 KB, application/x-zip-compressed)
2012-06-13 09:15 PDT, Tao.Yu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tao.Yu 2012-06-13 09:15:21 PDT
Reproducing steps:

1. start Minibrowser through below command:  

   ./MiniBrowser --window-size 320x480

2. Load the attached test page or from this URL: 
   http://iop4.nokia-boston.com/users/tests/viewport/Manual_Tests/ViewPort04.html

3. After the page is loaded, scroll down the page to show the image with 20x20 grids (image size is 600x600 pixels).

Expected result:   Only part of the image (for example, for the 1st row, only the first 10 grids) will be shown on the screen.

Actual result:    all 20 grids of the 1st row are shown (fit to the width) on the screen.


iPhone (iOS 5.1.1) works ok but QT WK2 miniBrowser does not.
Comment 1 Tao.Yu 2012-06-13 09:15:52 PDT
Created attachment 147335 [details]
Test Content
Comment 2 Allan Sandfeld Jensen 2012-08-02 06:45:29 PDT
So the problem is the viewport metatag is not applied, or that device-height is not respected?
Comment 3 Andras Becsi 2012-08-08 04:11:21 PDT
Since "none" does not seem to be a valid keyword for the width property of the meta tag [1] it translates to 0 which is handled differently (incorrectly?) by our webview.

[1] http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html
Comment 4 Jocelyn Turcotte 2014-02-03 03:21:15 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.