# What the iPhone Duo means for web development

DevFeed: [What the iPhone Duo means for web development](<https://devfeed.tech/articles/what-the-iphone-duo-means-for-web-development-98504.md>)

Original publisher: [Read original article](<https://www.mux.com/blog/what-the-iphone-duo-means-for-web-development>)

Author: Darius Cepulis

Published: 2026-10-23T17:23:42Z

Content type: article

Language: en

Sources: [Mux Blog - Video technology and more](<https://devfeed.tech/sources/mux-blog-video-technology-and-more.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [Web platform](<https://devfeed.tech/topics/web-platform.md>), [Media Queries](<https://devfeed.tech/topics/media-queries.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [iphone](<https://devfeed.tech/topics/iphone.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [apple](<https://devfeed.tech/tags/apple.md>), [apps](<https://devfeed.tech/tags/apps.md>), [css](<https://devfeed.tech/tags/css.md>), [developers](<https://devfeed.tech/tags/developers.md>), [device](<https://devfeed.tech/tags/device.md>), [display](<https://devfeed.tech/tags/display.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [feature-flags](<https://devfeed.tech/tags/feature-flags.md>), [folding](<https://devfeed.tech/tags/folding.md>), [for-developers](<https://devfeed.tech/tags/for-developers.md>), [future-of-the-web](<https://devfeed.tech/tags/future-of-the-web.md>), [iphone](<https://devfeed.tech/tags/iphone.md>), [iphone-duo](<https://devfeed.tech/tags/iphone-duo.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [web](<https://devfeed.tech/tags/web.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

## AI overview

The excerpt identifies two web APIs for foldable layouts: Device Posture reports whether a display is folded, via JavaScript or CSS, while Viewport Segments exposes segment geometry and counts so layouts can place content around the crease. The author uses them with Video.js 10 to prototype a Netflix-like split fullscreen player, including custom controls and a blurred canvas reflection. The prototype depended on feature flags: fullscreen controls appeared on the iPhone Duo after enabling the Fullscreen API flag, but the author says Apple still generally restricts web fullscreen to native controls. On a Pixel 9 Pro Fold emulator running Chromium 157, posture and segment queries worked, yet fullscreen content was clipped to the top half. The author notes unexpected behavior with some segment environment variables and leaves its cause unresolved.

## Source excerpt

We've been working really hard to get the new version of Video.js out the door, and we recently released v10.0.0! So over the weekend, I decided to relax a bit with a side project: digging into the web APIs that we'll have access to on the iPhone Duo. I know, I know, this kind of folding stuff has been kicking around on Android for years. But I've been an iOS user since my beloved HTC One died over ten years ago. And now, Tim John Apple has finally decreed it to be my turn to fold a phone. And I'm excited for my turn. Not only for the joy of once again having a small phone (iPhone mini, i miss u 🥺). But also for what this means for developers. Apple released six videos on building great apps for the iPhone Duo. The videos cover APIs that tell you about the device's physical characteristics and state, and they're brimming with design inspiration for the types of apps and interactions developers can build now. But this is Apple. Did they leave any scraps for us web developers? What web APIs are available for the iPhone Duo? After downloading Xcode 27.1 beta, I immediately fired up the simulator Device Hub, booted an iPhone Duo, beelined for the settings, and dug into the feature flags. I love feature flags. This list is an absolute toy box of the future of the web; the cool features that maybe, someday we'll get to play with. I pause and look up a few as I pass by. Like, what the heck is CSS Rhythmic Sizing?? But no. I've got to focus. I'm here for two specific things. And after a bit of scrolling, I find them. The Device Posture API and the Viewport Segment API. The Device Posture API The Device Posture API basically tells you whether the display you're looking at is continuous (e.g., your normie screen, flat or curved, so 2018) or folded (e.g., a folding phone partially folded, like a laptop). This works in JavaScript -- navigator.devicePosture -- or in CSS -- @media (device-posture: folded). The Viewport Segments API The Viewport Segments API tells you about the indiv