This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16403 - innerWidth and innerHeight are inconsistent across browsers (especially mobile)
Summary: innerWidth and innerHeight are inconsistent across browsers (especially mobile)
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 10:51 UTC by Kenneth Rohde Christiansen
Modified: 2013-08-08 13:28 UTC (History)
0 users

See Also:


Attachments

Description Kenneth Rohde Christiansen 2012-03-16 10:51:08 UTC
Example: innerWidth is not consistent across webkit browsers (desktop + mobile + half mobile browsers like desktop safari).

Spec: The innerWidth attribute must return the viewport width including the size of a rendered scroll bar (if any).

Quickmode defines the current behavior as: The dimensions of the viewport (interior of the browser window) - http://www.quirksmode.org/mobile/tableViewport.html

Quirkmode for mobile says: Dimensions of the visual viewport in CSS pixels.

The pinch zoom and double-tap to zoom is what make the difference and it is all due to the definition of viewport being rather value in comparison with scale support.
Comment 1 Glenn Adams 2012-08-03 05:55:20 UTC
reassign to myself; apparently i am not the default assignee for this component