- From: Jake Archibald via GitHub <sysbot+gh@w3.org>
- Date: Tue, 17 Jan 2023 09:36:29 +0000
- To: public-css-archive@w3.org
jakearchibald has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-view-transitions-2] view-transition-name determined by element ==
Thinking of this example https://codepen.io/jaffathecake/pen/VwBprqL
In this case the developer has to manually give each list item a unique `view-transition-name`. This could be avoided via something like:
```css
.list-item {
view-transition-name: element-uuid();
}
```
Where `element-uuid()` returns a value unique and constant for that DOM node.
The proposal for CSS `random()` has a `per-element` value that could be generalised as `element-uuid()`. https://github.com/w3c/csswg-drafts/issues/2826#issuecomment-1204305712 (cc @tabatkins)
The downside to this is it would only work for same-document transitions, since `element-uuid()`s will always be different across documents.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8320 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 17 January 2023 09:36:30 UTC