[Webkit-unassigned] [Bug 53707] Viewport Warning/Error Messages Are Now Inaccurate

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 3 14:36:36 PST 2011


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





--- Comment #37 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2011-03-03 14:36:35 PST ---

>    <meta name="viewport" content="width=480, target-densitydpi=240">
>    <meta name="viewport" content="width=320, target-densitydpi=160">

To explain myself better. By default we assume we are a 160 dpi device (as the original iPhone).

ie. device-width for a 160 dpi device is considered 320, which fits with the original iPhone.

But the device has a real width of 480 and a real dpi of 240. Hense using device-dpi or 240 should yield a device-width of 480, ie. it's actual width.

The calculo is: device-width = real width / (target-densitydpi / 160) = 480 / (240 / 160) = 480 / 1.5 = 320.

I hope that clears it up.

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