Re: [csswg-drafts] [css-color-5] Add `currentBackgroundColor` Variable (#5292)

> `var(color)` would not follow animation on `color` property as it's resolved on computed time

@upsuper Not sure if I get it, you make it sound as if animations are done after finding the computed value, but actually animations are part of the cascade, and affect the computed value. I think `var(color)` should basically work as `var(--color)` with

```css
@property --color {
  syntax: "<color>";
  inherits: true;
  initial-value: CanvasText;
}
```

and in Chromium `var(--color)` follows animation on `--color` just fine: https://software.hixie.ch/utilities/js/live-dom-viewer/saved/8680

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


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

Received on Wednesday, 11 November 2020 15:59:43 UTC