- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 05 Dec 2023 20:01:42 +0000
- To: public-css-archive@w3.org
After internal sync, proposing the following syntax:
```css
/* To specify a class */
.box { view-transition-class: box thing }
/* To style a pseudo-element based on a class */
::view-transition-group(.box | .box.thing | this-box.thing ...)
```
- This can apply also to `::view-transition-old`, `::view-transition-new`, `::view-transition-image-pair`
- Classes serialize together with the names in the cross-document case.
- Alternative considered: `::view-transition-group(*).box`, but it feels foreign, and creates an expectation that `.box` would also work.
In the future we can perhaps use a shorthand like `view-transition-name: this-box.any-box` (or some such).
--
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8319#issuecomment-1841529972 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 December 2023 20:01:45 UTC