- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 Dec 2023 10:59:48 +0000
- To: public-css-archive@w3.org
> This pattern could be summarised as "last captured classes win". > > @noamr in this case: > > ```js > const element = document.querySelector('.whatever'); > element.style.viewTransitionName = 'foo'; > element.style.viewTransitionClass = 'class-before'; > > document.startViewTransition(() => { > element.style.viewTransitionClass = 'none'; > }); > ``` > > …assuming `none` unsets the value, the group would have no classes. Is that right? Exactly. The mental model is that the class is for the entire view-transition group (pair or single element). So setting it sets it for the group, unsetting it unsets it for the group. -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8319#issuecomment-1853699755 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 December 2023 10:59:49 UTC