October 28, 2026

What happened

On October 23, 2026, Safari 27.1 shipped together with the foldable iPhone Duo. The WebKit blog stresses that it is the same Safari on the same engine as on other iPhones, so sites work on the new device just as they do everywhere. The main addition is a preview version of an API for foldable screens.

Safari 27.2 came out on October 26. It is available on iOS, iPadOS and visionOS 27.2, on macOS 27.2 Golden Gate, and on macOS Tahoe and Sequoia. It refines the styleable dropdown (Customizable Select) and the Grid Lanes layout, and fixes bugs, including some in element positioning.

How it works

### The foldable screen in Safari 27.1

The iPhone Duo has two screens, an outer and an inner one, and both work in portrait and landscape. According to WebKit, the viewport width on the device ranges from 382 to 951 CSS pixels, and the height from 368 to 902. On the inner screen in landscape, two windows can be opened side by side, and each gets a narrow vertical area.

For sites that want to account for the fold, Safari 27.1 adds two APIs:

  • Device Posture. The device-posture media query reports whether the device is partly folded (folded, the "book" or "laptop" position) or fully open or closed (continuous).
  • Viewport Segments. The horizontal-viewport-segments and vertical-viewport-segments media queries show how many parts the screen is divided into horizontally or vertically. Environment variables like env(viewport-segment-width 0 0) give the size and position of each part, and in JavaScript the same data is available through window.viewport.segments.

Both APIs still work in preview mode: they have to be turned on in Safari's settings, in the feature flags section. On the outer screen, site content does not yet extend under the side controls: Safari fills that area with the page's background color. Apple is looking for a replacement for the viewport-fit="cover" value for this case.

### Select and Grid Lanes in Safari 27.2

The styleable dropdown appeared in Safari 27.0, and in 27.2 its behavior is refined. The ::field-content pseudo-element is added: it lets you style the text of the selected item without using the <selectedcontent> element. The button's content is now centered vertically more reliably, the selected item's text inherits text-overflow from the select itself, the arrow icon stays visible even without <selectedcontent>, and a long list does not run off the screen. WebKit notes that the implementations in all browsers are now converging on the same behavior.

The Grid Lanes layout appeared in Safari 26.4. In 27.2 the flow-tolerance property is renamed fit-tolerance. It defines how picky the browser is when choosing a column for the next item: if the columns differ in height by less than this value, the browser treats them as equal and picks the first one. The default is 1em. A larger value helps keep items that are next to each other in order in neighboring columns, which is easier for people moving around the page with a keyboard. The old name still works but is declared deprecated.

What this means for a designer and for a client

A foldable phone adds a few more scenarios to a responsive grid: a wide, almost square screen, a narrow window in two-app mode, and the "book" position where the screen is split by the fold. WebKit advises relying on responsive layout and feature detection rather than detecting the device by user agent. For a designer this is a reason to check layouts not only at the usual breakpoints but also at intermediate widths and almost square proportions.

The new APIs make it possible to design a layout that accounts for the fold, for example to separate an image and text across the two halves of the screen. As long as the features can only be turned on with a flag, this is groundwork for the future, not something to build into a current project.

The changes to select matter for brand identity: the standard dropdown long resisted styling, so it was often replaced with hand-written components. The closer browser behavior gets, the easier it is to make a list in the brand's style on a standard element that keeps accessibility.

What to watch for

  • The foldable-screen APIs in Safari are still available only through flags, so you cannot rely on them in a working project.
  • If a project's code already uses flow-tolerance, it is worth replacing with fit-tolerance while the old name is still supported.
  • The styleable select and Grid Lanes are relatively new features. Before using them, check their support in other browsers and provide a fallback.
  • You can test a site on the iPhone Duo without the device in the Xcode 27.1 simulator or newer.

Sources