Mobile

WebKit Features for Safari 26.5

Safari 26.5 quietly arms front-end developers with four surgical CSS and DOM upgrades—`:open` pseudo-class for state-aware styling, `element-scoped` randomness to tame entropy, SVG gradient interpolation via `color-interpolation`, and `ToggleEvent.source` to trace popover triggers—while slipping in the Origin API as a potential cross-origin game-changer.

Safari 26.5 introduces several new features for front-end developers, including the :open pseudo-class, element-scoped randomness for the CSS random() function, color-interpolation for SVG gradients, and the ToggleEvent.source property. The release also includes the Origin API, which exposes origin information as a structured Origin object.

Overview

The :open pseudo-class provides a clean way to style the open state of elements like

, , . This pseudo-class works across all these element types, making it a practical improvement to everyday CSS. The element-scoped keyword for the CSS random() function allows for per-element behavior, enabling developers to generate random numbers that are unique to each element.

What it does

The color-interpolation attribute on SVG gradients enables linearRGB color space interpolation, producing more perceptually even color transitions. The ToggleEvent.source property includes a reference to the element that triggered the action, making it straightforward to coordinate behavior between a trigger and its target. The Origin API allows for same-site comparisons between origins without requiring string parsing.

Tradeoffs

The improvements in Safari 26.5 also include fixes for various issues, such as scroll-driven animations, anchor positioning, and hanging punctuation. The release continues the ongoing efforts to improve the quality of WebKit, with 63 bug fixes in total. While the new features and fixes enhance the browsing experience, some issues may still persist, and developers should test their websites and applications to ensure compatibility.

The practical takeaway from this release is that developers can leverage the new features and improvements to create more engaging and responsive web applications. By utilizing the :open pseudo-class, element-scoped randomness, and color-interpolation, developers can enhance the user experience and create more visually appealing interfaces. Additionally, the Origin API provides a more secure and efficient way to handle origin information, making it easier to develop secure web applications.

Similar Articles

More articles like this

Mobile 1 min

iPhone Ultra is coming: Six new features in Apple’s high-end model

Apple's long-awaited foray into foldable smartphones is set to disrupt the premium market with a 7.9-inch Dynamic AMOLED display, a quad-camera setup featuring a 50MP primary sensor, and a 5124mAh battery with 45W fast charging. The iPhone Ultra is also expected to boast a new A18 Bionic chip with a 5nm process and up to 16GB of LPDDR5X RAM. This high-end model will likely retail at a premium price point, starting at $1,499.

Mobile 1 min

Meta launches Instants, a new iPhone app and Instagram feature for ephemeral sharing

Meta's latest foray into ephemeral content, Instants, converges Instagram's existing ephemeral sharing capabilities with a standalone iPhone app, blurring the lines between the two platforms. The new app leverages Instagram's existing "Vanish Mode" feature, which deletes shared content after a set time period, typically 24 hours. This integration enables seamless ephemeral sharing across both Instants and Instagram.

Mobile 1 min

Apple Maps is launching ads on iPhone soon, here’s what to expect

"Apple's forthcoming in-app advertising model, set to debut in iOS 26.5's summer update, will inject sponsored content into Maps search results and nearby recommendations, leveraging location-based targeting and machine learning-driven ad placement to deliver personalized promotions to iPhone users."

Mobile 1 min

The Road to Name-Based Destructuring

Scala 3’s experimental `-Xname-based-destructuring` flag quietly retools pattern matching, letting developers unpack case classes by field name instead of position—an opt-in syntax shift that could unseat decades of positional destructuring habits and streamline refactoring for data-heavy codebases. The compiler now accepts `val (x, y)` for named fields and `val [x, y]` for positional, with stable release slated for the next minor version.

Mobile 1 min

Android 17 is getting redesigned emoji, and Google is clearly never bringing back the blobs [Gallery]

Android 17's revamped emoji set marks a definitive shift away from 2D designs, with Google opting for 3D textures across its entire emoji catalog, a move that effectively seals the fate of the beloved blob emoji, which have been absent since Android 11's transition to Unicode Consortium standards.

Mobile 2 min

Introducing Googlebook, designed for Gemini Intelligence - blog.google

Introducing Googlebook, designed for Gemini Intelligence blog.google