[csswg-drafts] [css-values-5][css-animations-2] Anonymous inline keyframes (e.g. in a style attribute) (#10951)

noamr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-5][css-animations-2] Anonymous inline keyframes (e.g. in a style attribute) ==
Currently to give an element a keyframe animation, the author has to declare the `@keyframes` rule in one place, give them a name, and then assign the keyframes to an `animation-name`.
This is unnecessarily tedious in some cases where the keyframes have a 1:1 relationship with an element or selector, and also restrict their use in inline styles.

Asking that we find a syntax to "shortcut" the keyframes directly into `animation-name`. Perhaps:

```css
animation-name: @keyframes { ... }
```


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10951 using your GitHub account


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

Received on Thursday, 26 September 2024 13:31:03 UTC