---
title: "WebKit Features in Safari 18.2"
description: "Safari 18.2 ships 61 new WebKit features and 111 fixes, headlined by cross-document View Transitions (with view-transition-name: auto, transition classes and types, and pageswap/pagereveal events), CSS text-box trimming for optical alignment to cap height, and background-clip: border-area."
url: "https://swe.quest/articles/webkit-features-in-safari-18-2-9cf887b031bc5207"
canonical: "https://webkit.org/blog/16301/webkit-features-in-safari-18-2/"
source: "WebKit"
published: "2024-12-09"
difficulty: "medium"
kind: "Release"
reading_minutes: 22
tags: ["browsers","css","frontend","webassembly"]
---

# WebKit Features in Safari 18.2

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-12-09, 22 min read, Release. Original: [https://webkit.org/blog/16301/webkit-features-in-safari-18-2/](https://webkit.org/blog/16301/webkit-features-in-safari-18-2/)

## Summary

Safari 18.2 ships 61 new WebKit features and 111 fixes, headlined by cross-document View Transitions (with view-transition-name: auto, transition classes and types, and pageswap/pagereveal events), CSS text-box trimming for optical alignment to cap height, and background-clip: border-area. It also brings modern calc() with division by units, ruby-align/ruby-overhang and unprefixed ruby-position, scrollbar-width and scrollbar-gutter (which has no effect with overlay scrollbars), ::target-text styling for text fragment links, spatial video and photo viewing in visionOS, WebXR enabledFeatures, Genmoji support, WASM garbage collection and HTTPS by default. Code samples show how to apply each feature, and Safari is the first browser to ship text-box, which degrades gracefully as a progressive enhancement.

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)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)

## Prerequisites

- CSS layout basics ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- HTML

## Keywords

Safari 18.2, WebKit, View Transitions, text-box, background-clip, WebXR, visionOS, Genmoji

## Related posts

- [WebKit Features in Safari 18.0](https://swe.quest/articles/webkit-features-in-safari-18-0-21b8c1f56b7c7e96.md): WebKit · 2024-09-16 · Medium · 36 min read · Browsers, CSS, Frontend
  Safari 18.0 ships 53 new web platform features, 25 deprecations and 209 fixes in WebKit alongside iOS 18, macOS Sequoia and visionOS 2.
- [News from WWDC24: WebKit in Safari 18 beta](https://swe.quest/articles/news-from-wwdc24-webkit-in-safari-18-beta-f6c733f3db9a46ad.md): WebKit · 2024-06-10 · Medium · 34 min read · Browsers, CSS, Frontend
  Safari 18 beta ships 48 new web platform features, 18 deprecations and 174 bug fixes across iOS 18, iPadOS 18, visionOS 2 and macOS Sequoia betas.
- [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.
- [WebKit Features in Safari 18.4](https://swe.quest/articles/webkit-features-in-safari-18-4-c34aa1377d66e945.md): WebKit · 2025-03-31 · Medium · 38 min read · Browsers, CSS, Frontend, Developer tools
  Safari 18.4 ships 84 new web platform features, 184 resolved issues and 13 deprecations.
- [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.

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)
