---
title: "WebKit Features in Safari 16.5"
description: "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."
url: "https://swe.quest/articles/webkit-features-in-safari-16-5-78f214007552b969"
canonical: "https://webkit.org/blog/14154/webkit-features-in-safari-16-5/"
source: "WebKit"
published: "2023-05-18"
difficulty: "easy"
kind: "Release"
reading_minutes: 4
tags: ["browsers","css","frontend"]
---

# WebKit Features in Safari 16.5

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2023-05-18, 4 min read, Release. Original: [https://webkit.org/blog/14154/webkit-features-in-safari-16-5/](https://webkit.org/blog/14154/webkit-features-in-safari-16-5/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## 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))
- HTML form validation

## Keywords

Safari 16.5, WebKit, CSS Nesting, :user-invalid, Apple Pay, Lockdown Mode, WebCodecs

## Related posts

- [WebKit Features in Safari 16.4](https://swe.quest/articles/webkit-features-in-safari-16-4-4fda9eefaadc5c33.md): WebKit · 2023-03-27 · Medium · 38 min read · Browsers, CSS, Frontend, Mobile
  Safari 16.4 ships 135 new web features and over 280 polish updates.
- [WebKit Features in Safari 16.2](https://swe.quest/articles/webkit-features-in-safari-16-2-97104b4a5912e4d5.md): WebKit · 2022-12-13 · Medium · 4 min read · CSS, Browsers, Frontend
  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.
- [WebKit Features in Safari 17.5](https://swe.quest/articles/webkit-features-in-safari-17-5-db83d5ba970a4034.md): WebKit · 2024-05-13 · Medium · 9 min read · CSS, Browsers, Frontend
  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 Features in Safari 17.2](https://swe.quest/articles/webkit-features-in-safari-17-2-c596929bac2922c9.md): WebKit · 2023-12-11 · Medium · 27 min read · Browsers, CSS, Frontend, JavaScript
  Safari 17.2 ships 39 web platform features and 169 fixes, its largest December release.
- [WebKit Features in Safari 17.4](https://swe.quest/articles/webkit-features-in-safari-17-4-28d81cae61957dde.md): WebKit · 2024-03-05 · Medium · 31 min read · Browsers, CSS, Frontend
  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.

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)
