From 2bd40c04782728e97d9be18563e47f20420e4329 Mon Sep 17 00:00:00 2001 From: shkumbinhasani Date: Fri, 8 May 2026 16:19:48 +0200 Subject: [PATCH 1/2] fix(router-core): fix missing closing paren in CSS.supports check for view transition types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `isViewTransitionTypesSupported` feature check passes an unbalanced selector string to `CSS.supports()`: CSS.supports('selector(:active-view-transition-type(a)') ^ missing ) This is invalid CSS, so `CSS.supports()` always returns `false`, causing `isViewTransitionTypesSupported` to be `false` even in browsers that fully support View Transition types (Level 2). As a result, the `types` array passed to `navigate({ viewTransition: { types } })` is silently dropped — `document.startViewTransition()` is called without types, and any CSS rules using `:active-view-transition-type()` never match. Fix: add the missing closing parenthesis. --- packages/router-core/src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 25f833c7fce..1da40985def 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -1178,7 +1178,7 @@ export class RouterCore< typeof window.CSS?.supports === 'function' ) { this.isViewTransitionTypesSupported = window.CSS.supports( - 'selector(:active-view-transition-type(a)', + 'selector(:active-view-transition-type(a))', ) } } From 8013ac10d2136e1f8f12dc5c1224998dad9807d6 Mon Sep 17 00:00:00 2001 From: shkumbinhasani Date: Fri, 8 May 2026 16:20:57 +0200 Subject: [PATCH 2/2] add changeset --- .changeset/fix-view-transition-types-typo.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-view-transition-types-typo.md diff --git a/.changeset/fix-view-transition-types-typo.md b/.changeset/fix-view-transition-types-typo.md new file mode 100644 index 00000000000..b29faa2487f --- /dev/null +++ b/.changeset/fix-view-transition-types-typo.md @@ -0,0 +1,5 @@ +--- +'@tanstack/router-core': patch +--- + +fix(router-core): fix missing closing paren in CSS.supports check for view transition types