[deviceorientation] Pull Request: Add a note explaining how the coordinate system differs from the CSS one.

rakuco has just submitted a new pull request for https://github.com/w3c/deviceorientation:

== Add a note explaining how the coordinate system differs from the CSS one. ==
The Device Orientation spec uses a right-handed system with Y being positive
upwards, while the CSS coordinate system uses a left-handed system with Y
being positive downwards. Additionally, DOMMatrixReadOnly.rotate() and its
DOMMatrix.rotateSelf() counterpart both apply rotations in a Z-Y'-X'' order
that differs from the Z-X'-Y'' order here and can also lead to confusion and
wrong rotations.

Chromium's own DevTools code for overriding Device Orientation values has
had multiple issues with this over the years, the latest one being
https://crbug.com/1137281, so it is probably a good idea to make it more
explicit to others.

See https://github.com/w3c/deviceorientation/pull/92


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 2 December 2020 14:19:53 UTC