Re: [csswg-drafts] [css-color-6] add color functions for some (or all) compositing/blending operations (#8431)

I was actually going to file this issue.

Would the proposed function here allow achieving the same results as this?

```
background-color: <base-opaque-color>;
background-image: linear-gradient(<semi-transparent-color>, <semi-transparent-color>);
```

I suggested color-mix() to someone facing this, and I realized that it wouldn't work because you would end up with a semi-transparent color. Maybe some fancy mix involving relative color syntax and color-mix() might work, but at this point, it's more convoluted than it should be.

I'm happy to file a new issue if this use-case isn't covered.

cc @svgeesus @weinig @mdubet 

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


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

Received on Friday, 19 January 2024 07:10:40 UTC