Re: [csswg-drafts] [css-color-4] Add `<alpha-value>` parameter to `<named-color>` and `<hex-color>` (#10678)

This is what relative color syntax is for:
```
rgb(from #aaa r g b 0.5)
rgb(from black r g b 0.7)
```

(note that #aaaaaa80 should also halve the opacity of #aaa) 

I could see a function to apply alpha that acts as syntax sugar though: `color-alpha(#aaaaaa 0.5)`

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


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

Received on Friday, 2 August 2024 20:50:29 UTC