This series of compatibility tests is sponsored by Vodafone.
Blah
browser pixels -> CSS pixels system pixels -> device pixelsProperty | IE7 | IE8 | FF 3.5 | Saf 4 | Chr 3 | Op 10 desktop | Op 10 S60 | Op 9.7 WinMob | Op 9.6 Samsung H1 | Op Mini 5 BlB | Op Mini 4 S60 | iPhone 3.1 | Android 1.5 mob | Android 1.5 desk | Android 2 | S60v3 | S60v5 | Iris | Ozone | Fennec b5 | MicroB | IE Mob 6 | Black Berry | NetFront 3.5 | Samsung WM WebKit | Obigo |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
screen.width and screen.height
|
Yes | brpx | Yes | some |
Yes | Yes | Yes | Yes | ||||||||||||||||||
Gives the width and height of the screen in “system pixels.” These values should not change with zoom;
|
||||||||||||||||||||||||||
MQ device-width and -height
|
No | Incor |
Yes | Yes | No | Yes | Yes | No | Yes | No | ||||||||||||||||
Uses the values in
|
||||||||||||||||||||||||||
window. innerWidth and -Height
|
No | Yes | Incor |
Buggy | some |
Yes | canvas | Incor |
Yes | Buggy | screen | Yes | No | Yes | Almost | Yes | ||||||||||
Gives the width and height of the viewport in “browser pixels.” Should react to basically all kinds of resizes, including zooming.
|
||||||||||||||||||||||||||
MQ width and height
|
No | Yes | Incor |
Yes | offset | screen | offset | Yes | offset | Yes | No | Yes | Buggy | screen | Yes | No | Almost | No | ||||||||
Uses the values in HTML.offsetWidth/Height to calculate the media query AND stretches up the height
to improbable lengths.screen.width/height to calculate the media query.
|
||||||||||||||||||||||||||
HTML. offsetWidth and -Height
|
fixed | Yes | Yes | 850 | 910 | 980 | Yes | 980 | Yes | 1008 | 800 | Almost | Yes | Yes | 800 | inner |
345 | Yes | ||||||||
Gives the width and height of the HTML element in “browser pixels.” Should either become smaller with zooming (desktop), or stay the same, if the minimum viewport is fixed (some mobile browsers).
|
||||||||||||||||||||||||||
Stretching
| No | No | max. 1024 | No | Yes | max. 850 | No | Untest |
No | body | No | max. 850 | No | |||||||||||||
If we add a 1500px width to one of the elements, does the browser stretch up the HTML element or not?
|
||||||||||||||||||||||||||
Viewport meta fixed
| No | Yes | No | Yes | Alter |
To be tested | No | Yes | No | Yes | No | Yes | ||||||||||||||
<meta name="viewport" content="width=380"> The HTML element is constrained to 380 pixels. On the iPhone it’s not possible to zoom out beyond a width of 380px. On Opera it is.
|
||||||||||||||||||||||||||
Viewport meta device
| No | Yes | Incom |
No | Incom |
Alter |
To be tested | No | Not sure | No | Not sure | No | Not sure | |||||||||||||
<meta name="viewport" content="width=device-width"> The HTML element is constrained to the On the iPhone it’s not possible to zoom out beyond the device width. On Opera it is. width , even when it’s in
landscape mode.
|
||||||||||||||||||||||||||
Default layout viewport width
|
n/a | 850 | device? | To be tested | device | 980 | device | 1008 | To be tested | device | To be tested | device | 974 | device | ||||||||||||
Is the layout viewport constrained by the device width, or does it take another width? |
||||||||||||||||||||||||||
Property | IE7 | IE8 | FF 3.5 | Saf 4 | Chr 3 | Op 10 desktop | Op 10 S60 | Op 9.7 WinMob | Op 9.6 Samsung H1 | Op Mini 5 BlB | Op Mini 4 S60 | iPhone 3.1 | Android 1.5 mob | Android 1.5 desk | Android 2 | S60v3 | S60v5 | Iris | Ozone | Fennec b5 | MicroB | IE Mob 6 | Black |
NetFront 3.5 | Samsung WM WebKit | Obigo |