Contact emails

alexis.men...@intel.com


       Explainer

https://github.com/w3c/device-posture
https://www.w3.org/TR/device-posture/#introduction


       Specification

https://www.w3.org/TR/device-posture


       Summary

This API helps developers to detect the current posture of a foldable device. The device posture is the physical position in which a device holds which may be derived from sensors in addition to the angle. From enhancing the usability of a website by avoiding the area of a fold, to enabling innovative use cases for the web, knowing the posture of a device can help developers tailor their content to different devices. Content can be consumed and browsed even when the device is not flat, in which case the developer might want to provide a different layout for it depending on the posture state in which the device is being used.



       Blink component

Blink>FoldableAPIs <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EFoldableAPIs>


       TAG review

https://github.com/w3ctag/design-reviews/issues/575


       TAG review status

Issues addressed


       Risks



       Interoperability and Compatibility

None



/Gecko/: No signal (https://github.com/mozilla/standards-positions/issues/882)

/WebKit/: No signal (https://github.com/WebKit/standards-positions/issues/328)

/Web developers/:
https://github.com/w3c/device-posture/issues/111#issuecomment-2363251667

/Other signals/:


       WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

Feature is disabled on WebView for now. See https://issues.chromium.org/issues/335314107 for more details.



       Debuggability

Besides the usual DevTools debugging of the CSS and JavaScript API, a specific device has been added into the Device Emulation mode.



       Will this feature be supported on all six Blink platforms
       (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Yes

The API will work on all the platforms but only Android and Windows will return posture information (other platforms do not have this category of devices)



       Is this feature fully tested byweb-platform-tests
       
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>?

Yes

The tests aren't complete yet because we need integration with WebDriver to emulate posture changes. It's being worked on. https://github.com/web-platform-tests/wpt/tree/master/device-posture



       Flag name on chrome://flags

device-posture


       Finch feature name

kDevicePosture


       Requires code in //chrome?

False


       Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1066842


       Sample links


https://github.com/foldable-devices


       Estimated milestones

Shipping on desktop     131
Origin trial desktop first      125
Origin trial desktop last       128
DevTrial on desktop     95
Shipping on Android     131
Origin trial Android first      125
Origin trial Android last       128
DevTrial on Android     123



       Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None


       Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5185813744975872?gate=6219681092599808


       Links to previous Intent discussions

Intent to Prototype:https://groups.google.com/a/chromium.org/g/blink-dev/c/prHGPxF62i4 Intent to Experiment:https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8c244153-79c4-483e-8449-4aca14b35636%40chromium.org


This intent message was generated byChrome Platform Status <https://chromestatus.com/>.

--
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/540e383c-1e1c-4918-9f10-c3fb2dd9bc19%40intel.com.

Reply via email to