[Webkit-unassigned] [Bug 76555] window.innerWidth/Height should not include page scale

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 15 07:46:12 PDT 2012


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


Kenneth Rohde Christiansen <kenneth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan.jensen at nokia.com,
                   |                            |ap at webkit.org,
                   |                            |ddkilzer at webkit.org




--- Comment #12 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2012-03-15 07:46:11 PST ---
(In reply to comment #0)
> The values of window.innerWidth and window.innerHeight seem to return CSS pixels multiplied with the page scale. I have not found an authoritative reference on whether these values should include page scale or not, but seeing as 1) the effects of text zoom is already cancelled out and 2) providing scaled CSS pixel values to web developers does not seem useful, I believe the page scale should not be included.

I am wondering whether this change we made makes sense as it seems be differ from most widespread mobile implementations.

http://www.quirksmode.org/mobile/tableViewport.html

"Dimensions of the visual viewport in CSS pixels."

This is also what current OS X Safari supports.

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