- From: Bramus! via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Aug 2023 12:41:29 +0000
- To: public-css-archive@w3.org
While building https://codepen.io/bramus/pen/mdabWzr earlier today I came to the realisation that `sibling-index()` won’t cut it in the case of View Transitions. If one, for example, inserts a node in a list at position `x` then all indexes after that position would get shifted, essentially breaking the View Transition for all those elements. Instead, something like `random()` should be used, as that one is able to generate a value per element. However, it might lead to clashes in case it generates the same value twice, so it’s not 100% closing. Maybe we also need something like `unique()` as that is guaranteed to not generate duplicate values. All this to say that my initial _“Ideally, the output of `calc()` and `attr()` would also be allowed as arguments into the proposed functions.”_ might be a requirement from the start. -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9141#issuecomment-1680532516 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 August 2023 12:41:32 UTC