Skip to content

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

WebKit 11 min read Release mediumAdept

WebKit Features for Safari 26.5

Safari 26.5 adds the CSS :open pseudo-class for styling open <details>, <dialog>, <select> and <input> pickers, an element-scoped keyword for CSS random() after the spec changed named random values to be global by default, color-interpolation="linearRGB" for SVG gradients, ToggleEvent.source for identifying a popover's invoker, and the Origin API for structured origin and same-site comparisons without the Public Suffix List. It also ships 63 bug fixes across anchor positioning, scroll-driven animations, block-in-inline layout, zoom rendering, SVG, WebRTC, IndexedDB and more. Code examples show how named random() values now behave and how to get per-element randomness back.

Assumes: CSS selectorsDOM events

Related posts

  • WebKit Features for Safari 26.2

    WebKit mediumAdept

    Safari 26.2 ships 62 new web platform features and 165 bug fixes, many of which replace JavaScript workarounds with plain HTML and CSS. New HTML features include button `command`/`commandfor` attributes for controlling dialogs and popovers, `hidden=until-found` and auto-expanding `details` for find-in-page, ARIA index text attributes, and full-width number normalization. CSS additions include `field-sizing`, `random()`, `sibling-index()`/`sibling-count()`, text shaping across inline boxes, Anchor Positioning refinements, `color-mix()` defaulting to Oklab, `scrollbar-color`, accent-color legibility clamping and a full `text-decoration` shorthand. The release also adds the Navigation API, opt-in CHIPS partitioned cookies and WebGPU in WebXR on visionOS.

  • Rolling the Dice with CSS random()

    WebKit mediumAdept

    CSS is gaining a native `random()` function, now available in Safari Technology Preview, with the signature `random(min, max, step)` where all arguments share a unit type and the optional step rounds results. Because custom properties act like text substitution, reusing a random value needs a named ident (e.g. `random(--size, 1px, 7px)`) to share it across properties on one element, while `element-shared` shares a property's value across all matched elements, and the two can be combined. Demos include a star field, random grid placement, tossed photo stacks and a spinning wheel animation, all without JavaScript. The spec is still under CSS Working Group discussion and WebKit is asking developers for feedback.

  • WebKit Features in Safari 16.5

    WebKit easyNovice

    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.

  • WebKit Features in Safari 26.0

    WebKit mediumAdept

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

  • Release Notes for Safari Technology Preview 253

    WebKit mediumAdept

    Safari Technology Preview 253 ships WebKit changes 320113@main through 321067@main for macOS Golden Gate and Tahoe. New features include global matching for style-originated scroll timelines, CSSContainerRule.conditions, sibling-index()/sibling-count() in container queries, safe/unsafe alignment with normal, BigInt support in Intl.PluralRules, and Toom-3 multiplication for large BigInts. Fixes cover CSS grid track sizing, list markers, corner-shape rendering, and interpolation. JavaScriptCore fixes address inline-cache invalidation, regex /v mode and lookbehind surrogate handling, and JIT bounds-check elimination. Further fixes touch media, networking (HTTP header validation, 2GB Blob overflow), and performance (IntersectionObserver CPU use, long-URL parsing hangs).

The quest for software engineering knowledge.

Look:
Layout: