Re: [csswg-drafts] [css-color-4] Concerns about color() function fallback (#5931)

> means that I have to duplicate the rgb value 

Ah, the perils of truncated examples.

```css
--my-color: color(--my-profile 0.4842 0.7107 0.2492);
color: var(--my-color, rgb(40% 80% 10%));
```

(In this example I am using [a prophoto-rgb space to represent --my-profile](https://colorjs.io/apps/convert/?color=color(prophoto-rgb%200.4842%200.7107%200.2492)&precision=4))

There is no duplication, the `var` fallback is using sRGB while the `--my-profile` is using whatever parameters it taks (in this case three, I'm using ProPhoto RGB for the example)

The only way there would be a duplication of rgb values if if I was loading a custom profile which is identical to sRGB. Which I can see happening in WPT but no-where else.



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


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

Received on Tuesday, 2 March 2021 21:41:09 UTC