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

@facelessuser, that's a great visualization! (And sorry for mixing up porter-duff operators and blend modes).

Any chance you could make a similar one with `srgb` and `xyz`? I just curious to see if they fail in the same way.

@svgeesus As it stands though, it seems like the grammar should probably something like?:

```
<rgb-color-space> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020
<color-layers()> = color-layers([ in <rgb-color-space>, ]? [ <blend-mode>, ]? <color># )
```

(With `<rgb-color-space>` moved to https://drafts.csswg.org/css-color-5/#interpolation and https://drafts.csswg.org/css-color-5/#typedef-rectangular-color-space updated to reference `<rgb-color-space>`)

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


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

Received on Tuesday, 6 January 2026 18:14:01 UTC