Skip to Content
Platform.Ontology

Screen brightness

A site cannot read how bright your screen is set.

Blocked for appsDevice detailsSensorsWeb browsersWhen the page loadsWhile you use it

In one line

Can't see how bright your screen is set

A site cannot read how bright your screen is set.

No API exposes backlight level. Proxies: prefers-color-scheme, dynamic-range and Screen Wake Lock state. Ambient light sensor was removed from stable browsers (Chrome behind a flag, Firefox 122 removed it) for fingerprint and privacy risk.

What it can and can't do

What the user does: Nothing. Pages have no way to ask for this

It can

  • See if you use light or dark mode
  • Check HDR and color range support
  • Keep your screen awake with a wake lock
  • Use a light sensor only where a flag turns it on in Chrome

It cannot

  • See the brightness level
  • See your battery saver or night mode
  • Use the ambient light sensor in Firefox, which removed it
  • Change your brightness

Browser support

BrowserStatusFirst versionNote
ChromeNot supportedNot availableNone
EdgeNot supportedNot availableNone
FirefoxNot supportedNot availableNone
SafariNot supportedNot availableNone
Safari on iPhoneNot supportedNot availableNone
Chrome on AndroidNot supportedNot availableNone
Samsung InternetNot supportedNot availableNone

How a site asks for it

APInone
How access is grantednot-exposed
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 backnot applicable
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: none
How often: static per session

FieldTypeUnitRangePrecision
proxy: prefers-color-schemestringNonelight or dark theme onlyNot listed
proxy: Screen Wake LockstringNonerequest only, no readoutNot listed

Technical limits

  • Side-channel risk led to removal

The story

What it is

A site cannot read how bright your screen is set.

For you

A site cannot see or change your screen brightness. It can only see whether you prefer a dark or light theme, and it can ask to keep the screen awake.

For makers

Brightness is a private device setting and a possible fingerprint. The web exposes only your theme preference and wake lock. Apps work around it with themes.

Where you see it

TypeExampleApps
videoA video site wanted brightness to adjust the picture and uses dark or light theme instead.YouTube
fitnessA workout page keeps the screen awake during a class using wake lock.None named
accessibilityA reading site wanted brightness to adapt contrast and relies on your theme and contrast settings.None named
gamesA browser game wanted brightness for a night mode and follows the system theme.None named
mapsA map in navigation mode keeps the screen on, and cannot change brightness.Google Maps
adsAn advertiser wanted brightness as a time of day clue and cannot get it.None named
securityA tracker wanted brightness as a fingerprint input and is blocked.None named

Risks

  • Theme and wake lock still hint at habits

What the platform says

Good uses and abuse

Legitimate uses

  • None: the browser deliberately withholds it

Known abuse

  • Sites attempt proxies to recover it

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction3 of 5How much the user has to do
Fingerprint bits0Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page