I tested media query, using six different browsers in a Huawei Ascend Y330/Android 4.2 and got three different device-width results reported by mqtest.io.
For each browser, I then tested the actual breakpoints on my own html-page with css like:
@media only screen and (max-device-width: 320px)
-- and by altering the pixel-value until formating-change showed up. Device-width in all six cases agree with what was reported by mqtest.io for the device.
Obviously, the problem is one can't control the design because the browser inconsistency. Is this a »local» problem or is it a general problem when using @media
?
Results according to mqtest.io and the web page test
Dolphin and Android default browser
device-width: 480px
device-height: 800pxOpera and Google Chrome
device-width: 320px
device-height: 534pxFirefox and Firefox Beta
device-width: 320px
device-height: 533pxScreen: 480x800
Pixel ratio: 1.5 (as reported by mqtest.io for all six browsers)