Table 7.2. Range media feature types that can be used with the min- and
max- prefixes.
Property Description Value type
ratio (such as 1024/768 or
16:9)aspect-ratio The ratio of width to heightratio (such as 1024/768 or
16:9)The ratio of the
device-width to
device-heightdevice-aspect-ratioaNumber of bits per color integer
component of the device; 0colorwhen the device is not a color
device
Minimum number of colors integer
available on the devicecolor-indexHeight of the viewport or page length
boxheightHeight of the screen, or page length
sheet size in the case of printed
mediadevice-heightbNumber of bits per pixel in a integer
monochrome frame buffermonochromeresolution (dpi, dpcm, and
dppx) unitsdDescribes the pixel density of a
deviceresolutioncWidth of the viewport or page length
boxwidthWidth of the screen, or page length
sheet size in the case of printed
mediadevice-widthaThisisdeprecatedintheMediaQueriesLevel 4 specification.Thoughwidelysupportedbybrowsers,
thesepropertiesaresubjecttoremoval.Avoidusingtheminnewstylesheets,andconsiderupdating
theminoldones.
bDeprecatedintheMediaQueriesLevel 4 specification.Thoughwidelysupportedbybrowsers,these
propertiesaresubjecttoremoval.Avoidusingtheminnewstylesheets,andconsiderupdatingthemin
oldones.
c Safari ≤ 9, Android ≤ 4.3, UC Browser ≤ 9, and BlackBerry Browser ≤ 10 use the non-standard, vendor-
prefixed -webkit-device-pixel-ratioinsteadofresolution
Applying CSS Conditionally 283