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

https://github.com/w3c/csswg-drafts/issues/10151#issuecomment-2054169317

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

Not a single `none` would be preserved here.

This is mixing in `lab` so all `none` values and keywords would be handled as `0` as a result of converting from `oklch` to `lab`.

I think that this is the largest issue with trying to preserve `none` in math expressions.
`none` really isn't syntactic sugar and interpolation happens between two values of type `<color>`. Maybe someone else sees a way to make this possible?

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


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

Received on Monday, 15 April 2024 06:54:19 UTC