Note: that this page doesn't (yet) take into consideration if a query is not supported.
The descriptions used on this page are from the lovely people @MDN
Value | Result |
---|---|
all | |
screen |
Media type "speech" is not included, because it's not visual.
If a user prints this page it (should) change the print media type to yes (and the screen media type to no).
Back to TOCThe any-hover CSS media feature can be used to test whether any available input mechanism can hover over elements.
Value | Result |
---|---|
none | |
hover |
Good support.
Back to TOCThe any-pointer CSS media feature tests whether the user has any pointing device (such as a mouse), and if so, how accurate it is.
Value | Result |
---|---|
none | |
coarse | |
fine |
Good support.
Back to TOCThe color-gamut CSS media feature can be used to test the approximate range of colors that are supported by the user agent and the output device.
Value | Result |
---|---|
srgb | |
p3 | |
rec2020 |
No support with Firefox.
Back to TOCThe forced-colors CSS media feature is used to detect if the user agent has enabled a forced colors mode where it enforces a user-chosen limited color palette on the page.
Value | Result |
---|---|
none | |
active |
Little support.
Back to TOCThe hover CSS media feature can be used to test whether the user's primary input mechanism can hover over elements.
Value | Result |
---|---|
none | |
hover |
Good support.
Back to TOCThe inverted-colors CSS media feature can be used to test whether the user agent or underlying OS is inverting colors.
Value | Result |
---|---|
none | |
inverted |
Little support.
Back to TOCThe orientation CSS media feature can be used to test the orientation of the viewport (or the page box, for paged media).
Value | Result |
---|---|
portrait | |
landscape |
Great support.
Back to TOCThe overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis.
Value | Result |
---|---|
none | |
scroll | |
optional-paged | |
paged |
Little support.
Back to TOCThe overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis.
Value | Result |
---|---|
none | |
scroll |
Little support.
Back to TOCThe pointer CSS media feature tests whether the user has a pointing device (such as a mouse), and if so, how accurate the primary pointing device is.
Value | Result |
---|---|
none | |
coarse | |
fine |
Good support.
Back to TOCThe prefers-color-scheme CSS media feature is used to detect if the user has requested a light or dark color theme. The user might indicate this preference through an operating system setting (e.g. light or dark mode) or a user agent setting.
Value | Result |
---|---|
light | |
dark |
Good support.
Back to TOCThe prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of non-essential motion it uses.
Value | Result |
---|---|
no-preference | |
reduce |
Good support
Back to TOCThe grid CSS media feature can be used to test whether the output device uses a grid-based screen. Most modern computers and smartphones have bitmap-based screens. Examples of grid-based devices include text-only terminals and basic phones with only one fixed font.
Great support.
Back to TOCThe aspect-ratio CSS media feature can be used to test the aspect ratio of the viewport.
Good support.
Back to TOCThe color CSS media feature can be used to test the number of bits per color component (red, green, blue) of the output device.
Good support.
Back to TOCThe color-index CSS media feature can be used to test the number of entries in the output device's color lookup table.
No support on Firefox (and IE).
Back to TOCdesc
Great support.
Use "em" instead of "px" to accomodate for users who change their font-size.
Back to TOCdesc
Good support.
Back to TOCThe resolution CSS media feature can be used to test the pixel density of the output device.
Good support except Safari.
Back to TOCThe width CSS media feature can be used to test the width of the viewport (or the page box, for paged media).
Great support.
Back to TOC