Re: [csswg-drafts] [css-view-transitions-2] Creating 'classes' of transition groups (#8319)

To summarize internal discussion:

- `view-transition-class` has the benefit of being able to specify it separately from name, e.g.
```css
.box {
  view-transition-class: box-animation;
}

.box#my-box {
 view-transition-name: my-box;
}
```

As far as selecting the pseudo-elements, several proposals have been floated around.
1.  `::view-transition-group(my-box of box) { }` or `::view-transition-group(* of box) {}`
2. `::view-transition-group(my-box.box) { }` or `::view-transition-group(.box) {}`
3. `::view-transition-group(my-box).box { }` or ::view-transition-group(*).box {}
4. `::view-transition-group(my-box):view-transition-class(box) { }` or ::view-transition-group(*):view-transition-class(box) {}

- Option (2) might seem like we allow any selector inside the pseudo-element selector.
- Option (3) has both the advantage and disadvantage of seeming close to regular DOM classes.

-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8319#issuecomment-1766520418 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 17 October 2023 14:20:24 UTC