w3c / deviceorientation

W3C Device Orientation spec
https://www.w3.org/TR/orientation-event/
Other
49 stars 32 forks source link

DeviceOrientationEvent: Define absolute's value on error #139

Closed rakuco closed 7 months ago

rakuco commented 7 months ago

We were only requiring alpha, beta, and gamma to be null. It makes sense to also require implementations to set absolute to the same value as well.

At the time of writing, this is done for completeness' sake though:

Fixes #119.


Preview | Diff

rakuco commented 7 months ago

Accompanying web test in https://github.com/web-platform-tests/wpt/pull/44557

rakuco commented 7 months ago

For posterity:

  • Gecko does not send any events if it cannot provide readings (e.g. when there are no sensors available).
  • WebKit only ships an iOS implementation, whose IDL does not even have an absolute attribute.