- From: Bramus via GitHub <sysbot+gh@w3.org>
- Date: Tue, 05 Nov 2024 10:41:45 +0000
- To: public-css-archive@w3.org
bramus has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-view-transitions-2] Allow targeting of the root having an active view-transition of any type ==
Right now we have the following selectors to customize the view transition styles in certain cases:
- [`:active-view-transition`](https://drafts.csswg.org/css-view-transitions-2/#the-active-view-transition-pseudo) applies when there is an active view transition _(regardless of it having types or not)_.
- [`:active-view-transition-type(<custom-ident>#)`](https://drafts.csswg.org/css-view-transitions-2/#the-active-view-transition-type-pseudo) matches when there is an active view transition with the given type(s).
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.
```css
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.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11152 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 November 2024 10:41:46 UTC