首页›WebKit›文章

Safari on Apple HomeView

2026年11月13日

AI 摘要 AI 生成,可能有误

Safari is now available on Apple HomeView, a new square, 7-inch smart display that users interact with by voice or touch, and since it runs on WebKit, most websites should already work without changes. Developers can enhance the experience by adding schema.org Recipe markup in JSON-LD to enable a step-by-step cooking view and including WebVTT captions in track elements for video. They should also avoid fragile assumptions like user agent sniffing or fixed viewport expectations, instead using semantic HTML, feature detection, and flexible, accessible layouts to handle HomeView's short, square screen.

It’s not every day our browser begins a life on a whole new platform. Now, Safari also lives on Apple HomeView, joining Safari on macOS, iOS, iPadOS, and visionOS.

People interact with HomeView with their voice from across the room, or up close with a tap on the square, 7-inch display. With easy access to the web in Safari, users can quickly look something up, open a link from a friend, cook from a recipe, or much more.

As a web developer, you might be wondering “What do I need to do to support Safari on Apple HomeView?” Most likely, you don’t need to do anything. This is Safari, powered by WebKit. And the web itself is designed to work on any screen, with any kind of input.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 WebKit

Global Privacy Control (GPC) WebKit API

AI 摘要Starting with iOS, iPadOS, visionOS, and macOS 27, WebKit offers a new API for Global Privacy Control (GPC), an emerging web standard that lets users opt out of data sharing and cross-context targeted advertising, as recognized under the CCPA. Developers using WKWebView or SwiftUI's WebPage can enable it via the new globalPrivacyControlEnabled property on WKWebpagePreferences or the isGlobalPrivacyControlEnabled property on WebPage.NavigationPreferences, which activates navigator.globalPrivacyControl and the Sec-GPC: 1 header for the main frame, subframes, and subresources. Example code in Swift and Objective-C shows how to set these properties in the navigation-policy delegate based on a user preference.

Release Notes for Safari Technology Preview 257

AI 摘要Safari Technology Preview Release 257 is now available for macOS Golden Gate and macOS Tahoe, bringing a wide range of WebKit fixes for developers to test. The release includes numerous CSS layout and rendering corrections (covering flexbox, grid, tables, text-box-trim, and line clamping), along with fixes for animations, canvas drawing, form controls including new support for rendering `` as a dropdown and preview support for an enhanced `` element. Additional improvements address JavaScript error handling, media playback issues such as ogg audio and video seeking, and editing behavior like text re-wrapping.

Introducing spatial CSS: A developer preview

AI 摘要Safari on visionOS 27.3 introduces a limited developer preview of the proposed spatial CSS API, which brings spatial and 3D web capabilities to web authors through declarative CSS rather than JavaScript. The preview includes features such as spatial:portal transforms, position-anchor for snapping models together, @environment-map for managing lighting, portal-action:orbit for rotating scenes, and requestVolumetricScene() to present content outside the browser window. WebKit is seeking developer feedback on these features while emphasizing that spatial content should work across all devices, not just headsets.

Release Notes for Safari Technology Preview 256

AI 摘要Safari Technology Preview Release 256 is now available for macOS Golden Gate and macOS Tahoe, containing WebKit changes between revisions 323398@main and 324653@main. The release introduces new CSS features such as font-palette-mix(), text-combine-upright on ::marker, and continue: collapse with line-clamp, along with new canvas text drawing style options and object-fit support for SVG documents. It also resolves numerous accessibility, animation, CSS, forms, HTML, images, and JavaScript bugs, including performance improvements for scroll-driven animations and removal of deprecated body margin attributes.

Introducing Adaptive Dark Mode

AI 摘要Apple has introduced Adaptive Dark Mode in Safari 27.3 beta, which transforms light-themed websites into dark versions for users who have enabled dark mode, addressing the gap where nearly 40% of page loads come from dark mode users but only 10% of sites support it. The feature works within the WebKit engine by inverting color luminosity while preserving hue, ensuring sufficient contrast, selectively transforming SVGs and simple logos, and respecting pages that declare dark mode support via the color-scheme property. Developers can opt out using color-scheme: light only, and Safari protects user privacy by preventing websites from detecting when Adaptive Dark Mode has been applied.