Skip to content

Missing CSS property viewTransitionClass #1926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GrandSchtroumpf opened this issue Mar 3, 2025 · 6 comments
Closed

Missing CSS property viewTransitionClass #1926

GrandSchtroumpf opened this issue Mar 3, 2025 · 6 comments

Comments

@GrandSchtroumpf
Copy link

Missing viewTransitionClass in CSSStyleDeclaration

The view-transition-class declaration should be included in the CSSStyleDeclaration
https://developer.chrome.com/docs/web-platform/view-transitions/same-document#view-transition-class

element.style.viewTransitionClass;

This feature is supported by Chome (125) and Safari (18).

Note: this features is not available on MDN yet as for today (3 March 2025)

@saschanaz
Copy link
Contributor

Maybe worth filing a bug in mdn ?

@GrandSchtroumpf
Copy link
Author

I'll do that too thanks for suggesting it.

@HolgerJeromin
Copy link
Contributor

I'll do that too thanks for suggesting it.

Note that mdn is the base of this generator.
So including it over there will push it to this lib-generator repo automatically.

@GrandSchtroumpf
Copy link
Author

@HolgerJeromin Thanks for letting me know.
I've open an issue on MDN with the missing documentation for ViewTransition API.
mdn/mdn#643

@saschanaz
Copy link
Contributor

BTW it turns out it's added in #1844, you should either wait until TypeScript updates or opt in for the latest lib with npm @types/web package.

@github-actions close

Copy link
Contributor

Closing because @saschanaz is one of the code-owners of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants