Device Posture API #328
Labels
from: Intel
Proposed, edited, or co-edited by Intel.
topic: device apis
Spec relates to device APIs: access to device-specific hardware, sensors, and interfaces
venue: W3C Devices and Sensors WG
WebKittens
No response
Title of the spec
Device Posture API
URL to the spec
https://www.w3.org/TR/device-posture/
URL to the spec's repository
https://github.com/w3c/device-posture/
Issue Tracker URL
No response
Explainer URL
https://www.w3.org/TR/device-posture/#introduction
TAG Design Review URL
w3ctag/design-reviews#575
Mozilla standards-positions issue URL
mozilla/standards-positions#882
WebKit Bugzilla URL
No response
Radar URL
No response
Description
The Device Posture API is an API which helps targeting foldable devices. It provides developers the ability to query the posture of the device (through MQs or JavaScript) and provide a differentiated experience to the user. It does not expose the hinge angle sensor value but a set of "posture" which describe the current physical position of the device.
As this time this API applies only to Android and Windows OSes. Android provides the necessary OS APIs over here. Windows doesn't have an official API yet but instead relies on OEMs implementing the following specification in their middleware pre-installed software.
This API is to complimentary of the Viewport Segments which also helps targeting foldable devices (WebKit position requested over here).
This API is enabled by default on Samsung Internet.
The text was updated successfully, but these errors were encountered: