inverted-colors
True if the OS inverts colors (Safari Smart Invert).
In one line
Can tell if your device inverts screen colors, such as Smart Invert on iPhone
True if the OS inverts colors (Safari Smart Invert).
Accessibility setting visible only in Safari and WebKit browsers. Used by FingerprintJS as a Safari-only trait.
What it can and can't do
What the user does: Nothing. It happens when the page loads.
It can
- Check whether inverted colors are on
- Keep images and video looking normal
- Add the answer to a browser fingerprint
It cannot
- Tell why you turned it on, though it can hint at a vision need
- Get an answer in Chrome, Firefox or on Android
- Change the setting
How it differs between platforms: Only Safari on iPhone and Mac reports it. Other browsers say nothing.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Not supported | Not available | Not listed | None |
| Edge | Not supported | Not available | Not listed | None |
| Firefox | Not supported | Not available | Not listed | None |
| Safari | Supported | 9.1 | 2016-03-21 | None |
| Safari on iPhone | Supported | 10 | 2016-09-13 | None |
| Chrome on Android | Not supported | Not available | Not listed | None |
| Samsung Internet | Not supported | Not available | Not listed | None |
How a site asks for it
| API | matchMedia('(inverted-colors: inverted)') |
| Browser compat keys | css.at-rules.media.inverted-colors |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
inverted-colors | enum | None | none, inverted | Not listed |
Technical limits
- Safari only
The story
What it is
Tells a page whether your device has inverted colors turned on, as Safari Smart Invert does.
For you
You never see the check. If you have Smart Invert on, a good site can fix photos and logos that would otherwise look like negatives.
For makers
Makers use it to avoid washed out images and broken brand colors. It is rarely used, but it can hint that the person uses an accessibility setting.
Where you see it
| Type | Example | Apps |
|---|---|---|
| accessibility | A news site keeps photos in their true colors while the rest of the page is inverted. | None named |
| media | A photo site restores true colors on pictures so faces do not look like negatives. | None named |
| games | A browser card game keeps card suits red and black even when the system inverts colors. | None named |
| shopping | A store keeps product colors true so shoppers do not buy the wrong shade. | None named |
| creative | A drawing app warns that the screen colors are inverted so you do not misjudge your work. | None named |
| analytics | A privacy aware team avoids recording the value since it can mark a vision need. | None named |
Risks
- May reveal vision needs
- Rare signal
What the platform says
- MDN: inverted-colors media feature. Documents a media query that tells a page when the operating system is inverting colors.
Good uses and abuse
Legitimate uses
- Respect OS theme and accessibility needs
- Adapt layout
Known abuse
- Infer disability or setting for fingerprinting
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 0.2 | Rough identifying entropy, when known |
Related capabilities
Related
- Accessibility settings inferred. Can guess you may use accessibility settings by combining several browser signals
Sources
How well checked: Based on official documentation.