What the iPhone Duo means for web development
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.
Related posts
- WebKit Features for Safari 27.1
WebKit mediumAdeptSafari 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. Developers can preview the Device Posture API (device-posture media query, navigator.devicePosture) and the Viewport Segments API (horizontal/vertical-viewport-segments media queries, viewport-segment-* env variables, window.viewport.segments) behind feature flags, with code examples for fold-aware grid layouts. Web content does not yet extend behind the side-mounted controls on the outer display, and WebKit is exploring alternatives to viewport-fit=cover because many sites fail to inset all edges correctly.
- WebKit Features in Safari 26.0
WebKit mediumAdeptSafari 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. On iOS and iPadOS 26 every site added to the Home Screen now opens as a web app by default, with no manifest required. Other additions include HDR images with the dynamic-range-limit property, the <model> element and immersive video via HLS on visionOS, the Digital Credentials API, WebGPU, and WebKit in SwiftUI. Note that progress() does not clamp, so values can fall below 0% or exceed 100%.
- Hopping on Firefox 91
Mozilla Hacks mediumAdeptFirefox 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. Intl.DateTimeFormat gains new timeZoneName options (shortOffset, longOffset, shortGeneric, longGeneric) plus formatRange() and formatRangeToParts() for localized date ranges, all shown with code examples. The Gamepad API is now restricted to secure contexts and gated by a gamepad Feature Policy. Private browsing windows also adopt an HTTPS-first policy that falls back to HTTP when a site lacks HTTPS.
- News from WWDC24: WebKit in Safari 18 beta
WebKit mediumAdeptSafari 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. Headline additions include immersive WebXR on visionOS with transient-pointer input and hand tracking, the View Transitions API, CSS Style Queries for custom properties, and currentcolor and system color keywords in Relative Color Syntax. Further additions are display-property transitions, the safe alignment keyword in Flexbox, content-visibility, and unprefixed backdrop-filter. Mac web apps can now open matching links based on their manifest scope and support extensions, and the Fullscreen API on visionOS can present spatial photos and panoramas immersively.
- Release Notes for Safari Technology Preview 234
WebKit easyNoviceSafari 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. New CSS layout features include `display: grid-lanes`, an automatic `grid-auto-flow` initial value and `item-tolerance` for masonry. Web API additions cover ReadableStream async iteration, readable byte streams as fetch bodies, the Keyboard Lock API, scoped custom element registries, the WebAuthn PRF extension, and multi-microphone getUserMedia capture. Fixes span table and grid layout, MathML, SVG parsing, Media Source Extensions, Intl and Web Inspector.