Notice:
The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

color

Jump to: navigation, search

color

This article is Not Ready.

W3C Recommendation

Summary

The ‘color’ media feature describes the number of bits per color component of the output device (usually 8). If the device is not a color device, the value is zero.

Examples

CSS

/* Image will only be shown on color screens  */
@media only screen and (min-color: 8) {
aside {
    background-image: url("very-complex.jpg");
    }
}



Related specifications

Specification Status Related Changes
Media Queries Level 4 Working Draft
Media Queries Recommendation