[Webkit-unassigned] [Bug 97556] New: Mobile Safari for iOS and Google Chrome for iOS ignore viewport settings on .mobi domains

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 25 05:05:18 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=97556

           Summary: Mobile Safari for iOS and Google Chrome for iOS ignore
                    viewport settings on .mobi domains
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://www.davidroessli.com/logs/2010/04/safari_ignore
                    s_viewport_mobi_domains/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Blocker
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pp at goli.at


Mobile Safari for iOS and Google Chrome for iOS ignore viewport settings on .mobi domains. If you don't specify a viewport for content served from a .mobi domain the rendering engine assumes a certain viewport other than for content served from a .com domain. If you define your own viewport it will be ignored.

See this article: http://www.davidroessli.com/logs/2010/04/safari_ignores_viewport_mobi_domains/

e.g.: we deliver the exact same content from http://www.caruso.mobi and from http://www.carusocarsharing.com

On the .mobi domain you can't zoom out to see the entire page. On the .com domain you can! You can try it by yourself on your iPhone here:

Everything OK:

http://www.carusocarsharing.com/static/css/test.html

clientWidth: 980
clientHeight: 1091

window.innerWidth: 980
window.innerHeight: 1091

screen.width: 320
screen.height: 480

****************************************

Doesn't work as expected:

http://www.caruso.mobi/static/css/test.html

clientWidth: 320
clientHeight: 356

window.innerWidth: 320
window.innerHeight: 356

screen.width: 320
screen.height: 480

-- 
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