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

> * The value of the `view-transition-group` would be targetable within the pseudos. This would mean that the value must be unique among `view-transition-group` and `view-transition-name`.

This is problematic from the current spec perspective. Specifically, things like step 3.9.5 of [pseudo element set up algorithm](https://www.w3.org/TR/css-view-transitions-1/#setup-transition-pseudo-elements-algorithm) uses the name to generate a dynamic style sheet targeting `::view-transition-group(name)` and set up specific transitions for that element. If that pseudo class now represents a group of elements, then we can't distinguish them for transform (etc) set up. 

My thought is that presence of `view-transition-group` on its own should match to itself by generating some unique name (spelled out in the spec) something like `ua-group-${group}-${index}` where `group` is the group name and `index` is a unique number. Then the selection would have to have a different pseudo class or format: `view-transition-group(*):group(groupname)`? As an aside, maybe using `class` is easier since `group` already has a meaning in VT

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


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

Received on Thursday, 5 October 2023 15:12:35 UTC