WPT
wpt / ambient-light / AmbientLightSensor.https.html
Spec: Ambient Light Sensor ↗
Runs: Chrome 155.0.8039.0 (wpt@6ec9fd59f, 2026-09-03) | Firefox 157.0a1 (wpt@6ec9fd59f, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-795e1 (wpt@7e3d005d7, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 19/19 | 1/19 | 1/19 | 1/19 | 1/19 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| AmbientLightSensor: Test that onerror is sent when permissions are not granted. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that onerror is send when start() call has failed. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that frequency is capped to allowed maximum. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that frequency is capped to the maximum supported frequency. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that frequency is limited to the minimum supported frequency. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that sensor cannot be constructed within iframe disallowed to use permissions policy. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that sensor can be constructed within an iframe allowed to use permissions policy. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that 'onreading' is called and sensor reading is valid. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: sensor reading is correct. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that readings are all mapped to expectedReadings correctly. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: sensor timestamp is updated when time passes. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that sensor can be successfully created and its states are correct. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: no exception is thrown when calling start() on already started sensor. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: no exception is thrown when calling stop() on already stopped sensor. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Test that fresh reading is fetched on start(). | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Readings are not delivered when the page has no visibility | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: frequency hint works. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: Readings delivered by shared platform sensor are immediately accessible to all sensors. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| AmbientLightSensor: throw 'TypeError' if frequency is invalid. | PASS | PASS | PASS | PASS | PASS | — |