
A quaternion represents orientation without assigning a turn to a single screen axis. Applying its elements in the wrong order can make a three-dimensional preview rotate backward. The browser interface at the center of this behavior is AbsoluteOrientationSensor.
Where the device meets the page
Before you change an application to depend on AbsoluteOrientationSensor, define its smallest successful interaction. A good test has an observable starting condition and an outcome someone else can recognize. A screenshot of the controls establishes their appearance. Run the interaction to establish what the implementation actually delivers.
Try the difficult case first
Test a neutral pose followed by one rotation around each physical axis. Compare the displayed object against the same marked orientation on the device.
Keep one repeat with the ordinary controls and another with the edge case described above. Compare the last successful step on each device. A one-line result that names the step and its outcome is more useful to the next person than a blanket label of “works” or “broken.”
Check the individual members
The compatibility record for a whole interface can predate a particular capability. The implementation decision for AbsoluteOrientationSensor depends on which member the application actually uses. Read the three desktop entries in order: Chrome, Firefox, then Safari.
AbsoluteOrientationSensor— version 67, no support recorded, no support recorded.
Which browsers record support for AbsoluteOrientationSensor?
The table gives a concrete reason to build a second route for this feature. Firefox desktop, Safari on macOS, Firefox on Android, Safari on iOS have no affirmative full-support version in this comparison. Check the detailed notes for the particular browser you ship and decide which part of the task should remain available.
| Browser family | First recorded standard entry |
|---|---|
| Chrome desktop | Version 67 |
| Firefox desktop | No support recorded |
| Safari on macOS | No support recorded |
| Chrome on Android | Version 67 |
| Firefox on Android | No support recorded |
| Safari on iOS | No support recorded |
Source snapshot: MDN Browser Compatibility Data 8.1.10, 19 November 2026. “Version” is the first recorded entry in this comparison. Individual methods can have later introduction dates.
What to ship alongside the feature
Document coordinate handedness and quaternion ordering. Use buttons or touch rotation on browsers where sensor access is unavailable.
typeof globalThis.AbsoluteOrientationSensor !== "undefined"This expression checks the interface or property in the current JavaScript environment. A positive answer does not run the device test above. Consult the member-level entries for AbsoluteOrientationSensor when any of them is a requirement.
Sources and further reading
- AbsoluteOrientationSensor reference and member details
- Interface specification
- MDN compatibility data, version 8.1.10
Cover photograph: A street in Dublin (55651909997) by William Murphy. CC BY-SA 4.0. Cropped and typeset for this cover. The photograph illustrates the topic. This image adaptation uses the same share-alike license.
