[csswg-drafts] Addition of `<color>` is way underspecified. (#8576)

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

== Addition of `<color>` is way underspecified. ==
It probably doesn't help that I don't really understand why one would _want_ to add `<color>`s (as opposed to, say, adding lengths which is obviously useful in an animation or transition). That said, this [sentence in V&U4 on ]() seems underspecified:

> [**Addition**](https://drafts.csswg.org/css-values-4/#addition) of [`<color>`](https://w3c.github.io/csswg-drafts/css-color-4/#typedef-color) is likewise defined as the independent addition of each component as a [`<number>`](https://drafts.csswg.org/css-values-4/#number-value) in premultiplied space.)

The color space in which addition happens is unspecified. It sounds like this text was written when `<color>` was always an sRGB value so you add the red, green and blue components.

```css
--one: color(display-p3 0.3 0.6 0.2 / 0.5);
--two: oklch(0.5 0.2 140);
```

What happens when I add `--one` and `--two`, and why.


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


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

Received on Monday, 13 March 2023 15:29:52 UTC