Re: [csswg-drafts] [web-animations-2] Element.animate could allow keyframes to come from CSS declaration (#2070)

I think the hope is that it would do the same things as

```js
element.style.animation = 'spin 1s';
const animation = element.getAnimations()[0]
```

In particular, the animation's keyframes would track whatever the current name lookup results in?

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


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

Received on Sunday, 22 February 2026 19:49:05 UTC