Web platform features explorer

Ambient light sensor

The AmbientLightSensor interface returns the current light level in lux of the ambient light level around the device.

Status

Limited availability

MDN documentation

Browser support (view on caniuse.com)

  • Chrome
  • Chrome Android
  • Edge
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS