Re: [csswg-drafts] [css-view-transitions-2] view-transition-name determined by element (#8320)

Another syntax option for generating the name from an ID:
```css
section[--id: id] img.hero {
    view-transition-name: "hero-" var(--id);
}
```

So instead of using `attr` or a special syntax for concating the ident, we only have a special syntax in the selector that assigns the attribute value to a CSS custom property, and `view-transition-name` can accept a concatentation of literal strings and functions that generate strings/numbers.


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


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

Received on Monday, 8 April 2024 21:06:58 UTC