Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

WebKit 6 min read Release mediumAdept

WebKit Features for Safari 27.1

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. 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.

Assumes: CSS media queriesCSS Gridresponsive web design

Related posts

  • What the iPhone Duo means for web development

    Mux mediumAdept

    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.

  • News from WWDC23: WebKit Features in Safari 17 beta

    WebKit mediumAdept

    Safari 17 beta brings 88 web features. Mac users can add any website to the Dock as a web app: cookies are copied over and web push and badging are supported. The release also adds experimental <model> and WebXR (immersive-vr with hand tracking) for Vision Pro, JPEG XL and HEIC image support, image-set() type arguments, and the power-efficient Managed Media Source API for adaptive streaming. HTML gains the popover attribute and <hr> in <select>, CSS gains @counter-style and expanded font-size-adjust, and each feature comes with code examples showing usage and fallbacks.

  • WebKit Features for Safari 27.0

    WebKit mediumAdept

    Safari 27.0 ships 80 new WebKit features and 844 fixes, including a local Safari MCP server (via safaridriver --mcp) that lets coding agents like Claude Code or Codex inspect DOM, network, console and screenshots. Customizable select via appearance: base-select gains redesigned UA default styles, plus ::picker-icon, ::checkmark and <selectedcontent>. Other additions include the <model> element on iOS, iPadOS and macOS, immersive environments on visionOS, scroll anchoring, sizes="auto" for lazy images, the CSS stretch keyword, and anchor positioning changes such as transform awareness and the new position-anchor default of normal. Quality work includes a new ES module loader, rebuilt CSS Zoom, subpixel inline layout and 66 SVG fixes.

  • News from WWDC26: WebKit in Safari 27 beta

    WebKit mediumAdept

    Safari 27 beta ships 58 new features, 525 fixes and 4 deprecations, with most of the work going into correctness, edge cases, cross-feature interactions and alignment with web standards and other browsers. Headline features include customizable <select> via appearance: base-select with ::picker-icon, ::checkmark and <selectedcontent>, transform-aware anchor positioning, scroll anchoring, WebAssembly JSPI, the :heading pseudo-class, revert-rule, the stretch sizing keyword and subpixel inline layout. Anchor positioning also changes: position-anchor now defaults to normal, and anchors-valid/anchors-visible are renamed to anchor-valid/anchor-visible. Long lists of fixes cover CSS layout, :has() invalidation performance, SVG 2 alignment, tables and form controls.

  • WebKit Features in Safari 17.2

    WebKit mediumAdept

    Safari 17.2 ships 39 web platform features and 169 fixes, its largest December release. HTML gains exclusive accordions via the `name` attribute on `<details>`. CSS gains relaxed nesting without `&`, the root font units rcap/rex/ric/rch plus `cap`, completed Motion Path support with `rect()`/`xywh()` shapes, `linear()` easing, mixed percentage and length arguments in `round()`/`mod()`/`rem()`, `counter-set`, unprefixed `mask-border`, and the Custom Highlights API. JavaScript and web APIs add import attributes for JSON modules, `Intl.NumberFormat` approximate ranges, Fetch Priority, responsive image preloading, and H264 L1T2 in WebCodecs, with short code examples for many of them.

The quest for software engineering knowledge.

Look:
Layout: