[csswg-drafts] [css-view-transitions-2] Feature detection for VT cross-document (#9891)

khushalsagar has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-2] Feature detection for VT cross-document ==
Authors need to be able to detect support for cross-document ViewTransitions, both in CSS and JS. In JS, there's a few options like whether there is `viewTransition` attribute on `pageconceal`/`pagereveal` events. Also `CSS.supports(@view-transition)` to check if the at-rule is valid CSS syntax.

For CSS, this can be checked with `@supports(@view-transition)` but its unclear whether that's enough or `active-view-transition` should be the recommendation. Since that tells you whether there is a transition in progress right now as opposed to whether the feature is supported by the browser.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9891 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 1 February 2024 19:48:10 UTC