Skip to content

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

Mozilla Hacks 3 min read Release mediumAdept

Hopping on Firefox 91

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

Assumes: JavaScript basicsDOM events

Related posts

  • WebKit Features for Safari 27.1

    WebKit mediumAdept

    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.

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

  • Release Notes for Safari Technology Preview 227

    WebKit easyNovice

    Safari Technology Preview 227 (WebKit 298484@main…299099@main) adds the Navigation API, the scrollend event, command/commandfor button attributes for declarative popover and dialog control, and CSS field-sizing, scrollbar-color, position-visibility and math-shift. Anchor positioning now remembers the last successful position-try fallback and supports pseudo-elements. WebAssembly gains Memory toFixedLengthBuffer()/toResizableBuffer(). Fixes cover Animation.commitStyles(), anchor() in grid, CSP nonce handling for preload headers, storage access inheritance for WebSockets, and SVG spec conformance.

  • Getting lively with Firefox 90

    Mozilla Hacks mediumAdept

    Firefox 90 enables JavaScript private class fields and methods by default, using a # prefix so properties can only be read or written inside the class body, and adds the relative-indexing at() method to Array, String and TypedArray, which accepts negative indexes to count from the end. The 2D Canvas API gains createConicGradient() for gradients swept around a center point, and Fetch metadata request headers (Sec-Fetch-Site, -Mode, -User, -Dest) are now sent by default so servers can decide whether to allow requests based on their origin context. Windows also gets Background Update, letting Firefox update while not running.

  • Looking fine with Firefox 89

    Mozilla Hacks mediumAdept

    Firefox 89 ships a slimmer, more minimalist interface alongside several new web platform features. The `forced-colors` media query detects modes like Windows High Contrast, for example to swap a suppressed `box-shadow` for a border. The `ascent-override`, `descent-override` and `line-gap-override` @font-face descriptors let local fallback fonts match web font metrics and reduce layout shift. The release also enables top-level `await` in JavaScript modules, so parent modules wait for child modules without blocking sibling loading, and adds the `PerformanceEventTiming` API for timing user-triggered events.

The quest for software engineering knowledge.

Look:
Layout: