Media queries are conditionals for serving up bits of CSS in certain cases.
This is the mobile table. See also the desktop table.
Last major update on 1 October 2014.
I'm writing a CSS book.
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
Should measure the layout viewport width and be equal to document.
|
Yes | Yes | Yes | Yes | Yes | Non |
Yes | Yes | Yes | ||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Should measure the layout viewport height and be equal to document. .
Be very careful. Ask yourself if you really need height
|
Yes | Tool |
Mes |
Yes | Toolbar | Tool |
Yes | Non |
Yes | Toolbar | Yes | Por |
Yes | Al |
Incor |
||||||||||||||
|
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
1em = 1rem = initial font size = 16px in most browsers | Yes | Almost | Yes | Yes | Almost | Yes | Non |
wr |
Yes | Yes | Al |
||||||||||||||||||
|
|||||||||||||||||||||||||||||
Should be equal to ideal viewport and screen.width/ .
Do not use. Use width/height instead
|
Portrait | Static | Static | * | Static | Static | Non |
Almost | Yes | Sta |
Portrait | Problem | |||||||||||||||||
Important: This tests whether the device-width/height media queries are equal to
|
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS |
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
The aspect ratio of the layout viewport. | Yes | Tool |
Almost | Yes | wr |
Yes | Tool |
Tool |
Yes | Non |
OK | Tool |
Yes | Yes | Yes | Incor |
|||||||||||||
|
|||||||||||||||||||||||||||||
The aspect ratio of the device screen | Portrait | Static | Mostly static | Static | * | Static | Static | Non |
OK | Yes | Sta |
Portrait | Incor |
Problem | |||||||||||||||
|
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
Prefixed | Almost | Yes | Yes | wr |
Yes | Yes | Yes | No | Yes | No | Yes | No | |||||||||||||||||
|
|||||||||||||||||||||||||||||
Yes | Yes | Yes | Yes | Yes | OK | non |
Yes | Yes | Yes | ||||||||||||||||||||
|
|||||||||||||||||||||||||||||
No | No | No | wr |
Yes | No | No | Non |
Yes | No | Yes | Yes | ||||||||||||||||||
|
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS |
The useless media queries. Each of them either has insufficient support, or gives useless information.
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
Prefixed | Yes | Yes | Yes | No | Yes | Yes | No | Yes | No | No | |||||||||||||||||||
Yes | Yes | Most |
Yes | Yes | Yes | Yes | Yes | Incom |
No | ||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Yes | No | No | Yes | No | No | Yes | No | Yes | Yes | ||||||||||||||||||||
Yes | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes | |||||||||||||||||||||
The correct answer is: No, this is not a grid. |
|||||||||||||||||||||||||||||
No | No | No | No | No | No | No | Yes | No | |||||||||||||||||||||
No | Yes | No | Yes | Yes | Yes | Yes | No | Yes | Yes | ||||||||||||||||||||
The correct answer is: No, this is not a monochrome. That said, the Sony e-reader, which is the single monochrome device in my test array, also reports No. |
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
What kind of pointer does the device have? | No | No | Yes | No | No | No | No | No | |||||||||||||||||||||
|
|||||||||||||||||||||||||||||
A Mozilla experiment and an old Opera experiment. Prefixed | No | No | No | No | No | Incor |
No | No | Yes | ||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Prefixed | Yes | Yes | Yes | No | Yes | Yes | No | Yes | No | No | |||||||||||||||||||
Prefixed | Yes | Yes | Yes | Yes | Yes | No | Yes | No | No | ||||||||||||||||||||
Android 2 and UC self-report no support for transform-3d. |
|||||||||||||||||||||||||||||
Prefixed | Yes | Yes | Yes | No | Yes | Yes | No | Yes | No | No | |||||||||||||||||||
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||||||
Mobile browsers should be of types |
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS |
Media query syntax.
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||||||
@media (min-width: 50px) Does this syntax work? |
|||||||||||||||||||||||||||||
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||||||
@media (min-width: 50px) and (min-device-height: 1em) Does this syntax work? |
|||||||||||||||||||||||||||||
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||||||
@media (min-width: 50px),(min-device-height: 1em) Does this syntax work? |
|||||||||||||||||||||||||||||
Requires a media type | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||||||||||||||
@media not all and (min-width: 50px) Does this syntax work? The media type is required. Once you start thinking about it it’s convoluted. Why not just |
|||||||||||||||||||||||||||||
iOS | Android | Chromium | UC 9 | Black |
Nokia Xpress | UC Mini | Opera | Nin |
Dol |
IE | Firefox | ||||||||||||||||||
7 | 8 | 2 | 4 | Sa | Puf | Cy | Xia | Op | Go | 6 | 7 | 10 | Mini | Classic | 9 | 10 | 11 | And | OS | ||||||||||
Yes | No | No | Yes | No | No | No | Yes | No | Yes | No | No | ||||||||||||||||||
@media min-width: 50px Does this syntax work? |
|||||||||||||||||||||||||||||
Yes | No | Yes | No | No | No | No | Yes | ||||||||||||||||||||||
@media all{ @media (min-width: 50px) { // styles } } Does this syntax work? |
The following media queries are not supported by any browser:
Mobile browser test array 2.0.1; September 2014
Version 2.x has quite a few changes from 1.3; see my notes.
Wolfgang AT-AS45FW note: Wolfgang is a Dutch importer and re-brander of phones. In this particular case they seem to have bought Chinese (? probably) phones, re-branded them, then re-sold them to the Whoop company, which re-branded them and sold them to the Hema chain of supermarkets, which sells them to consumers as the Whoop Echo. Supply chain management FTW!