W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Nov 2020 15:59:41 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-725505793-1605110380-sysbot+gh@w3.org>
> `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

@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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC