---
title: "WebKit Features for Safari 26.5"
description: "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."
url: "https://swe.quest/articles/webkit-features-for-safari-26-5-9e2dcf5e05a5b2cd"
canonical: "https://webkit.org/blog/17938/webkit-features-for-safari-26-5/"
source: "WebKit"
published: "2026-05-11"
difficulty: "medium"
kind: "Release"
reading_minutes: 11
tags: ["browsers","css","frontend"]
---

# WebKit Features for Safari 26.5

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2026-05-11, 11 min read, Release. Original: [https://webkit.org/blog/17938/webkit-features-for-safari-26-5/](https://webkit.org/blog/17938/webkit-features-for-safari-26-5/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- CSS selectors ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- DOM events

## Keywords

Safari 26.5, WebKit, CSS random(), Origin API, ToggleEvent, CSS Anchor Positioning, SVG

## Related posts

- [WebKit Features for Safari 26.2](https://swe.quest/articles/webkit-features-for-safari-26-2-18e103a1cdccebe8.md): WebKit · 2025-12-12 · Medium · 39 min read · Browsers, CSS, Frontend, Accessibility
  Safari 26.2 ships 62 new web platform features and 165 bug fixes, many of which replace JavaScript workarounds with plain HTML and CSS.
- [Rolling the Dice with CSS random()](https://swe.quest/articles/rolling-the-dice-with-css-random-5c437898e1aae927.md): WebKit · 2025-08-21 · Medium · 9 min read · CSS, Browsers, Frontend
  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.
- [WebKit Features in Safari 16.5](https://swe.quest/articles/webkit-features-in-safari-16-5-78f214007552b969.md): WebKit · 2023-05-18 · Easy · 4 min read · Browsers, CSS, Frontend
  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.
- [WebKit Features in Safari 26.0](https://swe.quest/articles/webkit-features-in-safari-26-0-4e0c3f282c06e21a.md): WebKit · 2025-09-15 · Medium · 40 min read · Browsers, CSS, Frontend, Mobile
  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.
- [Release Notes for Safari Technology Preview 253](https://swe.quest/articles/release-notes-for-safari-technology-preview-253-dbd4fbc72270f33d.md): WebKit · 2026-09-23 · Medium · 16 min read · Browsers, CSS, JavaScript, Runtimes & VMs
  Safari Technology Preview 253 ships WebKit changes 320113@main through 321067@main for macOS Golden Gate and Tahoe.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
