Re: [csswg-drafts] [css-color-6] Does color-layers() need a color interpolation method (or similar)? (#13254)

The original idea behind color-layers() was to replace/simplify this kind of hack:
```
background-color: var(--color-0);
background-image: linear-gradient(var(--color-1)), linear-gradient(var(--color-2))
```
into
```
background-color: color-layers(var(--color-0), var(--color-1), var(--color-2))
```

so it's been assuming how compositing works which I think uses srgb.

Not opposed to adding a colorspace option, but I wonder if default should be srgb or oklab


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


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

Received on Monday, 29 December 2025 22:27:58 UTC