From 386cbb8a587e24bca4e09bc0178372c24a9d96be Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Fri, 22 Aug 2025 23:49:34 +0200 Subject: [PATCH] more on levels --- src/content/docs/basics/levels.mdx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/content/docs/basics/levels.mdx b/src/content/docs/basics/levels.mdx index ab4bbb4..fb69a9f 100644 --- a/src/content/docs/basics/levels.mdx +++ b/src/content/docs/basics/levels.mdx @@ -62,16 +62,18 @@ Up to now, all vendors have implemented and released Level 1 first before they w For the Chromium based browsers, this was not a problem as when they released Level 1 support there where no othr browsers that understood Level 2. When Safari came out, this was different, but it did not take that lon for them to deliver Level 2 after that. ### Same-Document Features Missing in Level 1 -The problem is not same-document vs. cross-document. The problem is that there are browser versions out there in the wild that support only Level 1 of the API. To say it more clearly: Soon you can use same-document view transitions on all major browsers, but if you want to support them all, you can't use the extensions from the Level 2 list above. +The problem is not same-document vs. cross-document. The problem is that there are Safari and Chrome browser versions out there in the wild that support only Level 1 of the API. To say it more clearly: Soon you can use same-document view transitions on all major browsers, but if you want to support them all, you can't use the extensions from the Level 2 list above. This might be obvious for the more experimental stuff like nested view transition groups or scoped view transitions. But for simple same-document view transitions, there are some highly desirable features that we cannot use cross-browser before Level 2 becomes baseline. - no view transition classes -- no view transition types -- no auto-generated view transition names +- no view transition types and their pseudo-classes +- no auto-generated view transition names with match-element (or auto) -Of course, there is no guarantee that it comes that bad: -* Firefox Nightly already [has support for `view-transition-class`](https://bsky.app/profile/vtbag.dev/post/3ltwvggp7xc2u). So this should not become a problem. -* Firefox Nightly already [has support for `view-transition-name: match-element`](https://bsky.app/profile/martr.app/post/3lwyzve7nac2i). When usings the [declarative-names script](/tools/utensil-drawer/#declarative-names) from The Bag's Utensil Drawer, you also have an alternative for dynamically generating view transition names that works more reliably across browsers. -* The Bag's utensil-drawer now has a [polyfill for view transition types](/tools/utensil-drawer/#usetypespolyfill-always--never) to support them even on browsers that only implement Level 1 of the View Transition API! +### What Happens when Firefox Releases Level 1 + +Actually, Firefox Nightly not only supports Level 1 of the View Transition API, also brings some Level 2 features: +* Firefox Nightly already [has support for `view-transition-class`](https://bsky.app/profile/vtbag.dev/post/3ltwvggp7xc2u) and the [`:active-view-transition` pseudo-class](basics/test-page/). +* Firefox Nightly already [has support for `view-transition-name: match-element`](https://bsky.app/profile/martr.app/post/3lwyzve7nac2i), but not for `view-transition-name: auto`, which is not really part of the standard. When usings the [declarative-names script](/tools/utensil-drawer/#declarative-names) from The Bag's Utensil Drawer, you also have an alternative for dynamically generating view transition names that works more reliably across browsers. +* So the main problem might be the missing support for view transition types. Good news here: The Bag's Utensil Drawer now has a [polyfill for view transition types](/tools/utensil-drawer/#usetypespolyfill-always--never) to support them even on browsers that only implement Level 1 of the View Transition API! -- knotmirror 0.0.1