Intent to Experiment: Foldable APIs (combo of Device Posture and Viewport Segments APIs)

157 views
Skip to first unread message

Menard, Alexis

unread,
Apr 1, 2024, 1:51:42 PMApr 1
to blin...@chromium.org

Contact emails

Explainer



Specification


Summary

A collection of APIs that help developers target foldable and dual screen devices:  Device Posture API and Viewport Segments Enumeration API.


This is an origin trial for both APIs because they are complimentary to each other, and we would like developers to use both when they design for foldable and dual screen devices. This is mostly a catch up with what native APIs on Android already offers for few years. The web APIs are available on all OSes however they light up on Android and Windows platforms only.

Each have their own chrome status entry : https://chromestatus.com/feature/5185813744975872 https://chromestatus.com/feature/5170498990243840


Blink component

TAG review


TAG review status

Completed

Risks

Interoperability and Compatibility

None



Gecko: No signal 


WebKit: No signal 



Web developers: Positive

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?

None



Goals for experimentation

We would like developers to try the two APIs and provide feedback.

Ongoing technical constraints

None


Debuggability

Yes, DevTools support has been added where developers can emulate on Android foldable, on Android dual screen and one Windows foldable. In this case the APIs are turned on and developers can see how their website react on the device (including visualizing the hinge).


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

Yes

Is this feature fully tested by web-platform-tests?

For now, no, we're in the process of adding Web Driver integration.

Flag name on chrome://flags

Viewport Segments, Device Posture

Finch feature name

Viewport Segments, Device Posture

Non-finch justification

None

Requires code in //chrome?

False

Estimated milestones

M125 if possible, otherwise M126 to start the trial.



Link to entry on the Chrome Platform Status

This intent message was generated by Chrome Platform Status.

Mike Taylor

unread,
Apr 1, 2024, 1:53:26 PMApr 1
to Menard, Alexis, blin...@chromium.org

How many milestones are you requesting for the OT (whether it starts in 125 or 126)?

--
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+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/DM4PR11MB60684CB86B7D66D2353338C9FA3F2%40DM4PR11MB6068.namprd11.prod.outlook.com.

Menard, Alexis

unread,
Apr 1, 2024, 2:14:05 PMApr 1
to Mike Taylor, blin...@chromium.org
Hi,

I think 4 milestones would be good (so M125-M129 or M126-M130). It gives me ample time to reach out and partner with the various ISVs we have in mind.

Thanks.

From: Mike Taylor <mike...@chromium.org>
Sent: Monday, April 1, 2024 1:53 PM
To: Menard, Alexis <alexis...@intel.com>; blin...@chromium.org <blin...@chromium.org>
Subject: Re: [blink-dev] Intent to Experiment: Foldable APIs (combo of Device Posture and Viewport Segments APIs)
 

Mike Taylor

unread,
Apr 1, 2024, 3:12:28 PMApr 1
to Menard, Alexis, blin...@chromium.org

Thanks - sounds good.


LGTM to experiment for 4 milestones (125 to 128 inclusive OR 126 to 129 inclusive).

Mike Taylor

unread,
Apr 1, 2024, 3:51:44 PMApr 1
to Menard, Alexis, blin...@chromium.org

One more thing, mind requesting reviews for Privacy, Security, Debuggability in your chromestatus entry? Thanks

Alexis Menard

unread,
Apr 1, 2024, 4:02:58 PMApr 1
to Mike Taylor, blin...@chromium.org
Hi,

All requested, all done but one. See in their separate linked Chrome Status entries.

Thanks.



--
Alexis Menard
Software Engineer @ Intel
Reply all
Reply to author
Forward
0 new messages