This feature introduces a new CSS property view-transition-class which allows the developer to specify one or more view transition classes. The developer can then select the ViewTransition pseudo elements using these classes (e.g. ::view-transition-group(.class)). This is an extension to the ViewTransition API that simplifies styling of view transition pseudo elements in a similar way that CSS classes simplify styling of regular DOM elements.
Similar to other style, repeating ids can get tedious which is why CSS has classes. This proposal aims to bridge the gap between CSS outside of view transition and CSS in the view transitions context. We'd like to introduce a new property called `view-transition-class`, which would take a list of custom-idents that will identify the elements by a class name. Note that the new property will not impact the construction of the pseudo tree: this is still built solely based on the `view-transition-name` property. We would also like to add new syntax to leverage the view-transition-class in the view transition pseudo element's selectors
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified