web-platform-tests / interop

web-platform-tests Interop project
https://wpt.fyi/interop
319 stars 27 forks source link

View Transition Types #770

Open hvanops opened 1 month ago

hvanops commented 1 month ago

Description

View Transition types allows developers to customize a View Transition based on the type of the navigation that is happening: e.g., back / forward in history, reload.

This feature was raised by a developer at Wix: [css-view-transitions-2] Syntax for customizing transitions based on their type · Issue 8960 · w3c/csswg-drafts · GitHub

Specification

https://drafts.csswg.org/css-view-transitions-2/#the-active-view-transition-pseudo

Additional Signals

Standards Positions Gecko: Positive - https://github.com/mozilla/standards-positions/issues/905 WebKit: No information - https://github.com/WebKit/standards-positions/issues/266

Tests https://wpt.fyi/results/css/css-view-transitions?label=experimental&label=master&aligned

Browser Bugs Chromium bug - https://issues.chromium.org/issues/40276317

captainbrosset commented 1 month ago

In preliminary results to the State of CSS 2024 survey, View Transitions came up as the 5th most common answer to the question "Are there any existing CSS features that you have difficulties using (or avoid altogether) because of lack of support, or differences between browsers?".

(can't share a link yet as these are preliminary results)

gsnedders commented 1 month ago

This is probably something more like https://wpt.fyi/results/css/css-view-transitions?label=master&label=experimental&aligned&q=types; whether we want to include everything in /css/css-view-transitions/navigation probably should be tied to #771.