← Back to release summary

Foldable APIs

Category
Device
Type
New or changed feature
Status
Origin trial (Chrome Origin trial)
Intent stage
None

Summary

A collection of APIs that helps developers target foldable and dual screen devices: Device Posture API and Viewport Segments Enumeration API. Each have their own chrome status entry : https://chromestatus.com/feature/5185813744975872 https://chromestatus.com/feature/5170498990243840

Motivation

New types of devices are appearing that have some sort of capabilities that allow them to change their posture. The most common types of devices are the ones that can fold (their screen or around their screen), allowing them to physically alter their form factor. Specs : Device Posture : https://www.w3.org/TR/device-posture Viewport Segments CSS: https://www.w3.org/TR/mediaqueries-5/#mf-horizontal-viewport-segments and https://github.com/w3c/csswg-drafts/pull/9285

Standards & signals

Explainers: https://github.com/WICG/visual-viewport/blob/gh-pages/segments-explainer/SEGMENTS-EXPLAINER.md https://www.w3.org/TR/device-posture

View on chromestatus.com