Skip to Content
Platform.Ontology

inverted-colors

True if the OS inverts colors (Safari Smart Invert).

Gets silentlyScreen and windowsCSS media featuresWeb browsersWhen the page loadsWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeNot supportedNot availableNot listedNone
EdgeNot supportedNot availableNot listedNone
FirefoxNot supportedNot availableNot listedNone
SafariSupported9.12016-03-21None
Safari on iPhoneSupported102016-09-13None
Chrome on AndroidNot supportedNot availableNot listedNone
Samsung InternetNot supportedNot availableNot listedNone

How a site asks for it

APImatchMedia('(inverted-colors: inverted)')
Browser compat keyscss.at-rules.media.inverted-colors
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
inverted-colorsenumNonenone, invertedNot 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

TypeExampleApps
accessibilityA news site keeps photos in their true colors while the rest of the page is inverted.None named
mediaA photo site restores true colors on pictures so faces do not look like negatives.None named
gamesA browser card game keeps card suits red and black even when the system inverts colors.None named
shoppingA store keeps product colors true so shoppers do not buy the wrong shade.None named
creativeA drawing app warns that the screen colors are inverted so you do not misjudge your work.None named
analyticsA 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

Good uses and abuse

Legitimate uses

  • Respect OS theme and accessibility needs
  • Adapt layout

Known abuse

  • Infer disability or setting for fingerprinting

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits0.2Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page