Skip to content

[css-view-transitions-2] Allow targeting of the root having an active view-transition of any type #11152

@bramus

Description

@bramus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions