Ambient Light Events
Ambient Light Event API which is a handy way to make a web page or web app aware of any change in light intensity.
Ambient Light Events are in development! Keep track of the latest at: https://status.modern.ie/ambientlightevents
Steven Vachon commented
Why does this feature, with 140 votes, get a "working on it" status before other features with thousands more votes? Edge is still IE.
Would also help reduce eye strain. Especially for those of us with light sensitive eyes.
This can also save battery life