Re: [csswg-drafts] [css-color-4][css-values-4][web-animations-1] Behavior of additive animations of color properties is unclear (#7793)

Certainly that particular example with translucent colors seems very useful. However, I don't know enough about color to know what would be most useful in the general case.

Two considerations that might help frame the question though:

1. If we were later to introduce `!add` (as has been proposed in #1594) then what would we want to happen for content such as the following?

    ```css
    .thing {
      background-color: yellow;
    }
    .thing.-special {
      background-color: blue !add;
    }
    ```


2. If we ever want to map SVG/SMIL animations onto Web Animations (as was one of the original goals of Web Animations, and something we considered doing in Gecko at one point), then we might want to keep the component-wise addition as a possible behavior since SVG defines color addition in those terms.

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


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

Received on Friday, 25 November 2022 01:09:09 UTC