Two lines of Cross-Document View Transitions code you can use on every website today
Adding `@view-transition { navigation: auto; }` to a site's CSS enables cross-document View Transitions, so elements shared between pages stay fixed and everything else crossfades instead of flashing blank between navigations. A simple crossfade doesn't introduce motion and generally needn't be disabled under `prefers-reduced-motion`. Support covers Safari 18.2, Chrome 126 and Edge 126 (about 85% of users), and unsupported browsers simply ignore the rule, making it a safe progressive enhancement.
Related posts
- WebKit Features in Safari 18.2
WebKit mediumAdeptSafari 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.
- WebKit Features in Safari 18.0
WebKit mediumAdeptSafari 18.0 ships 53 new web platform features, 25 deprecations and 209 fixes in WebKit alongside iOS 18, macOS Sequoia and visionOS 2. Notable additions include the View Transitions API, CSS Style Queries for custom properties, currentcolor and system colors in Relative Color Syntax, transitions on `display`, unprefixed `backdrop-filter`, and `content-visibility`. Web apps on Mac can now capture in-scope links and run extensions, and visionOS 2 adds WebXR immersive-vr sessions with transient-pointer input and hand tracking, plus Fullscreen API support for spatial photos and panoramas. Code samples show how to use the new CSS and JavaScript APIs.
- News from WWDC24: WebKit in Safari 18 beta
WebKit mediumAdeptSafari 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. Headline additions include immersive WebXR on visionOS with transient-pointer input and hand tracking, the View Transitions API, CSS Style Queries for custom properties, and currentcolor and system color keywords in Relative Color Syntax. Further additions are display-property transitions, the safe alignment keyword in Flexbox, content-visibility, and unprefixed backdrop-filter. Mac web apps can now open matching links based on their manifest scope and support extensions, and the Fullscreen API on visionOS can present spatial photos and panoramas immersively.
- Fresh 2.3: Zero JS by default, View Transitions, and Temporal support
Deno mediumAdeptFresh 2.3 now skips the client-entry bootstrap script entirely on pages that use no islands or partials, cutting static pages from roughly 5–9 KB gzipped JavaScript to zero with no configuration. It adds opt-in View Transitions wired into partial navigation, built-in WebSocket routes via app.ws() and ctx.upgrade(), CSP nonce and CIDR-based IP filter middleware, W3C traceparent injection for browser-side OpenTelemetry, Temporal types as island props, and trustProxy handling of X-Forwarded headers. Vite integration drops two Babel passes, fixes CJS and duplicate-Preact issues, and middleware chains are now precompiled at startup; upcoming work targets Vite 8 with Rolldown and build-time prerendering.
- WebKit Features for Safari 26.4
WebKit mediumAdeptSafari 26.4 ships 44 features, 191 fixes and one deprecation, headlined by CSS Grid Lanes (`display: grid-lanes`) for masonry-style layouts with `flow-tolerance` control, WebTransport as a low-latency WebSocket alternative, and the Keyboard Lock API. Most of the release focuses on spec alignment and interoperability: name-only container queries, `min()`/`max()`/`clamp()` in `sizes`, MathML typography (`math-depth`, `font-size: math`), extensive CSS `zoom` fixes so zoom applies at used-value time and `getBoundingClientRect()` returns scaled values, and scroll-driven animations moved to the compositor thread. The ongoing layout engine rewrite finishes blocks-in-inline layout, continues Flexbox and begins CSS Grid, and developers are asked to file reduced test cases at bugs.webkit.org.