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 |