Right now we have the following selectors to customize the view transition styles in certain cases:
What is missing here is way to target the v-t root when a view-transition using any type is happening. This be useful to provide some default view-transition styles (e.g. when going from page to page) but special case the types.
html:not(html:active-view-transition-type(*)) {
/* “Regular” v-t styles when no type at all is set */
}
html:active-view-transition-type(togglelightdark) {
/* togglelightdark-specific vt-styles */
}
html:active-view-transition-type(reorder) {
/* reorder-specific vt-styles */
}
Suggestion is to allow * in :active-view-transition-type() which would match any type, or to add the functionless :active-view-transition-type pseudo-class selector.