W3cubDocs

/CSS

@media.inverted-colors

The inverted-colors CSS @media media feature can be used to apply styles based on whether the user agent or underlying OS is inverting colors.

Syntax

The inverted-colors feature is specified as a keyword value chosen from the list below.

none
Colors are displayed normally.
inverted
All pixels within the displayed area have been inverted.

Specifications

Specification Status Comment
Media Queries Level 4
The definition of 'inverted-colors' in that specification.
Working Draft Deferred to Media Queries Level 5.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support No support No support No support No support
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support No support No support No support

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/inverted-colors