---
title: "What the iPhone Duo means for web development"
description: "Safari on the foldable iPhone Duo exposes the Device Posture API and Viewport Segments API behind WebKit feature flags."
url: "https://swe.quest/articles/what-the-iphone-duo-means-for-web-development-ae876b58f98678e3"
canonical: "https://www.mux.com/blog/what-the-iphone-duo-means-for-web-development"
source: "Mux"
published: "2026-10-23"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["frontend","css","browsers","video-media","mobile"]
---

# What the iPhone Duo means for web development

A post on [Mux](https://swe.quest/sources/mux.md), published 2026-10-23, 8 min read, How-to. Original: [https://www.mux.com/blog/what-the-iphone-duo-means-for-web-development](https://www.mux.com/blog/what-the-iphone-duo-means-for-web-development)

## Summary

Safari on the foldable iPhone Duo exposes the Device Posture API and Viewport Segments API behind WebKit feature flags. They let pages detect a folded posture via \`navigator.devicePosture\` or \`@media (device-posture: folded)\` and position content per screen segment with \`env(viewport-segment-\*)\` variables. Using these plus a flagged Fullscreen API, a Netflix-style folded video player was built from Video.js v10 components, with video on the top half and tiled controls on the bottom. A blurred, mirrored reflection is drawn by copying frames to a small canvas via requestVideoFrameCallback, since -webkit-box-reflect doesn't work on video in iOS Safari. In practice it needs three feature flags on iOS, and Chromium on a Pixel Fold clips fullscreen content to the top half, so the design isn't shippable today.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)

## Prerequisites

- CSS media queries ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- HTML video element ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- CSS grid and positioning ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))

## Keywords

Device Posture API, Viewport Segments API, Video.js, iPhone Duo, Fullscreen API, requestVideoFrameCallback, WebKit, Safari

## Related posts

- [WebKit Features for Safari 27.1](https://swe.quest/articles/webkit-features-for-safari-27-1-aa9f32f307e48f19.md): WebKit · 2026-10-23 · Medium · 6 min read · Browsers, CSS, Frontend, Mobile
  Safari 27.1 ships with iPhone Duo, a folding phone, using the same WebKit engine as other iPhones, so responsive sites work unchanged; viewport widths range from 382 to 951 CSS pixels and heights from 368 to 902 across the outer and inner displays and split windows.
- [WebKit Features in Safari 26.0](https://swe.quest/articles/webkit-features-in-safari-26-0-4e0c3f282c06e21a.md): WebKit · 2025-09-15 · Medium · 40 min read · Browsers, CSS, Frontend, Mobile
  Safari 26.0 ships 75 new web features, 3 deprecations and 171 improvements, headlined by CSS Anchor Positioning (position-area, anchor(), position-try), scroll-driven animations, text-wrap: pretty, contrast-color() and the progress() function, with code examples for each.
- [Hopping on Firefox 91](https://swe.quest/articles/hopping-on-firefox-91-43b40b5229f7a9ce.md): Mozilla Hacks · 2021-08-10 · Medium · 3 min read · Browsers, JavaScript, Frontend
  Firefox 91 enables the Visual Viewport API by default, making it available in all major browsers and letting pages read the visible viewport's size, offset and scale and react to resize and scroll events, such as when zooming or an on-screen keyboard appears.
- [News from WWDC24: WebKit in Safari 18 beta](https://swe.quest/articles/news-from-wwdc24-webkit-in-safari-18-beta-f6c733f3db9a46ad.md): WebKit · 2024-06-10 · Medium · 34 min read · Browsers, CSS, Frontend
  Safari 18 beta ships 48 new web platform features, 18 deprecations and 174 bug fixes across iOS 18, iPadOS 18, visionOS 2 and macOS Sequoia betas.
- [Release Notes for Safari Technology Preview 234](https://swe.quest/articles/release-notes-for-safari-technology-preview-234-c61c7e32fab07eaa.md): WebKit · 2025-12-19 · Easy · 5 min read · Browsers, CSS, Frontend
  Safari Technology Preview 234 adds Threaded Scroll-driven Animations, which update opacity, transform, filter and Motion Path animations off the main thread as scrolling happens, for smoother results on ProMotion displays.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
