Re: [csswg-drafts] [css-color-5] Behavior of `none` in relative color syntax (#10151)

If anything is hairy, it's things like:

```
color-mix(
 in lab, 
 oklch(50% none none), 
 oklch(50% calc(none + .1) calc(none + 180))
)`
```

I can see two interpretations:
1. Both `none`s stay, and the resulting color has a chroma of `calc-mix(50%, none, calc(none + .1))`
2. The first none yields to the second expression, since technically that is not `none`, so the resulting chroma is `calc(none + .1)`

I think 1 makes more sense, but we need to clarify.

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


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

Received on Sunday, 14 April 2024 19:59:53 UTC