Re: [csswg-drafts] [color-5] Serialization of percentages in color-mix() (#8564)

So I just added this

```html
The serialization of the specified value of a ''color-mix()'' function
is the string "color-mix(in ",
followed by the specified <<color-space>> in all-lowercase,
followed by ", ",
followed by the first specified color,
followed by a space,
followed by the normalized first percentage,
followed by ", ",
followed by the second specified color,
followed by ")".

Following the principle of shortest serialization,
and given that the normalized percentages are serialized,
the normalized second percentage is omitted.
```

but see a problem: if the normalized percentages add to less than 100%, how do we serialize the alpha multiplier (which cannot be expressed directly in the syntax, only indirectly.

Si I am thinking we need to retain the as-specified (un-normalized) percentages, if they are both given and if they add to less than 100%.

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


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

Received on Monday, 20 March 2023 19:23:20 UTC