- From: Yehonatan Daniv via GitHub <noreply@w3.org>
- Date: Wed, 07 Jan 2026 10:45:25 +0000
- To: public-css-archive@w3.org
Thanks, @benface, for proposing.
Do you have real-life use-cases for this?
I don't really understand how your proposal works. What exactly are those "identifiers"? Are they a custom idents? Keywords?
Where are they declared?
Also, I'm not sure I understand your proposed mechanism of scoping.
I think what you want is for some declarations to be transitioned to, and some not. That's quite tricky to achieve.
You could move the `transition` into the `&:hover` but then it won't transition on leaving.
Notice you would be able to achieve this easily with `animation-trigger` like:
```css
@keyframes color-change {
from {
color: var(--initial-color);
}
to {
color: var(--hovered-color);
}
}
a {
event-trigger: --hover mouseenter / mouseleave;
animation: color-change 1s both;
animation-trigger: --hover play-forwards play-backwards;
}
```
--
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13224#issuecomment-3718292640 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 January 2026 10:45:26 UTC