Re: [csswg-drafts] [css-color-5] Example 10, incorrect color function used (#7625)

Since css-color-4 the `rgb()` function can take an alpha value, and the `rgba()` function is now considered a legacy syntax: See https://www.w3.org/TR/css-color-4/#rgb-functions and https://www.w3.org/TR/css-color-4/#legacy-color-syntax

```css
rgb(from var(--bg-color) r g b / 80%);
```
That syntax is correct.

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


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

Received on Friday, 19 August 2022 09:36:24 UTC