Skip to content

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

WebKit 4 min read Release easyNovice

WebKit Features in Safari 16.5

Safari 16.5 is mainly a polish and bug-fix release that adds CSS Nesting, the :user-valid and :user-invalid pseudo-classes, Apple Pay support for pre-orders and deferred payments, and disabling of the WebCodecs API in Lockdown Mode. Nesting still requires nested element selectors to start with a symbol such as &, a limitation the CSS Working Group hopes to remove. The new form pseudo-classes wait for user interaction before flagging input as invalid, which removes the need for JavaScript workarounds, and they pair well with :has(). Dozens of fixes cover CSS margin-trim, scroll snapping, media playback, WASM SIMD and Web Inspector.

Assumes: CSS selectorsHTML form validation

Related posts

  • WebKit Features in Safari 16.4

    WebKit mediumAdept

    Safari 16.4 ships 135 new web features and over 280 polish updates. The headline additions are Web Push and the Badging API for Home Screen web apps on iOS and iPadOS, Declarative Shadow DOM and ElementInternals for Web Components, and a large batch of CSS features. The CSS work includes margin-trim, lh/rlh units, font-size-adjust, Relative Color Syntax, @property, Media Queries level 4 range syntax and CSS Typed OM. JavaScript gains RegExp lookbehind, and HTML gains lazy-loaded iframes. Most features come with short code examples showing typical usage.

  • WebKit Features in Safari 16.2

    WebKit mediumAdept

    Safari 16.2 focuses on cross-browser interoperability as part of Interop 2022, with Safari Technology Preview 159 passing 98.5% of the Interop tests. It completes support for `font-variant-alternates` values such as `styleset()`, `swash()` and `ornaments()` along with `@font-feature-values`, and adds `last baseline` alignment for Flexbox and Grid items. A long list of fixes covers CSS layout (flex sizing, scroll snap, text-decoration, aspect-ratio), rendering (transforms, canvas, tables), SharedWorker, and WebDriver on iOS.

  • WebKit Features in Safari 17.5

    WebKit mediumAdept

    Safari 17.5 ships seven features and 22 bug fixes, led by CSS additions: text-wrap: balance (with the text-wrap-style longhand), the light-dark() color function, @starting-style for entry transitions, and supports() conditions on @import rules. WebKit balances an unlimited number of lines, versus 6 in Chromium and 10 in Firefox, but skips balancing around floats, initial letters, preserved tabs and soft hyphens. Unsupported text-wrap values fall back to auto, so they are safe to use as progressive enhancement. The release also adds AV1 in WebCodecs when a hardware decoder is available, two WebGL extensions, and fixes across accessibility, media, rendering, Web Push and WebRTC.

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

  • WebKit Features in Safari 17.4

    WebKit mediumAdept

    Safari 17.4 ships 46 web platform features and 146 bug fixes, alongside completion of WebKit's multi-year rewrite of its inline layout engine. The rewrite retires the 21-year-old legacy line layout code, finishing with a reimplementation of Ruby, and is the starting point for rewriting other formatting contexts, beginning with Flexbox. Headline features include a native HTML switch (`<input type="checkbox" switch>`) that falls back to a checkbox, vertical writing-mode form controls, `align-content` in block and table layout, and the `@scope` rule. The release also adds web app manifest `shortcuts` and `categories` on macOS. `@scope` changes specificity tie-breaking so the rule whose scope root is closest in the DOM wins, so it should be adopted with care.

The quest for software engineering knowledge.

Look:
Layout: