Matthew Atkinson

Creating compelling cross-device foldable experiences on the Web

Is your responsive design ready for foldable devices? Learn how the new Device Posture API allows your website to react to a device's physical state, not just its size.

Creating compelling cross-device foldable experiences on the Web
#1about 3 minutes

Understanding user needs for foldable devices

Foldable devices create new user interaction patterns that traditional responsive design alone cannot fully address.

#2about 2 minutes

Introducing the W3C Device Posture API

The Device Posture API provides a standard way to model a device's state as either 'continuous' for flat screens or 'folded' for bent screens.

#3about 2 minutes

Using JavaScript and CSS for device posture

Detect a device's fold state using the `navigator.devicePosture.type` property in JavaScript or the `device-posture` media query in CSS.

#4about 2 minutes

Managing screen areas with the Viewport Segments API

The Viewport Segments API complements the Device Posture API by providing CSS properties to query the dimensions of logical screen segments.

#5about 4 minutes

Understanding the W3C web standards process

Web standards evolve through stages like Working Draft and Candidate Recommendation, with community review at each step.

#6about 3 minutes

Balancing privacy and accessibility in new standards

New web APIs undergo rigorous review to minimize privacy risks like fingerprinting while maximizing accessibility opportunities.

#7about 3 minutes

Live demo and current browser support

A practical demonstration shows how a web app's UI adapts to a device folding, with the API available in Samsung Internet and behind a flag in Chrome.

#8about 1 minute

How developers can get involved with web standards

Developers can influence the future of the web platform by filing GitHub issues or joining W3C community and working groups.

#9about 5 minutes

Q&A on testing, future devices, and breakpoints

Questions on testing without a physical device, future support for multi-fold devices, and how fold breakpoints are determined are addressed.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
Daniel Cranney, Chris Heilmann
Dev Digest 215: Agent Memory, JS2026, Googlebot Analysis & Canvas❤️HTML
Inside last week’s Dev Digest 215 . 🗿 Make AI talk like a caveman 🧠 A guide to context engineering for LLMs 🤖 Simon Willison on agentic engineering 🔐 Axios supply chain attack post mortem 🛡️ Designing AI agents to resist prompt injection 🎨 HTML in c...
Dev Digest 215: Agent Memory, JS2026, Googlebot Analysis & Canvas❤️HTML
Daniel Cranney
The State of HTML 2024: What can we learn from it?
The results of the State of HTML 2024 survey are in! Though the name suggests it’s HTML-only, the survey focuses on the web platform in a more general sense, giving us some fascinating insights into not only the state of the web, but also some sense ...
The State of HTML 2024: What can we learn from it?

From learning to earning

Jobs that call for the skills explored in this talk.