- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Tue, 09 Apr 2024 09:15:42 +0000
- To: public-css-archive@w3.org
> Can you describe what the effect of this code is? As in, how would you explain it to a developer? I'm happy to ignore the syntax and naming but I have no idea what it does.
It would assign classes, id's and attributes onto the pseudo elements.
```css
::view-transition-new(.class-a[foo=bar]) {}
::view-transition-new(.class-b[foo~="bar"]) {}
::view-transition-new(.class-a:is([foo], [fooz])) {}
```
I really do not want to drag this too much off topic :)
But if the issue is that authors need more powerful tools to select view transitions then I do wonder why we aren't leaning into the full selector syntax.
This is mostly in response to magic string concatenation suggested in ` view-transition-name: "thumb-" var(--id);`
This is actually a key/value pair. `thumb` and `id` : `[thumb=id]`
--
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8320#issuecomment-2044525027 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 9 April 2024 09:15:43 UTC