Re: [csswg-drafts] [css-color-5] Clarify serialization of color-mix() (#6206)

@weinig wrote:

> I chose the `color(srgb ...)` syntax serialization for WebKit for two reasons.

> 1. The use of `srgb` as the color space in the `color-mix()` gave it symmetry.
> 2. The use of the `color(srgb ...)` syntax gives more precision in WebKit, and therefore a mix could be more precise.

I agree with point 1, and point 2 was accepted by WG Resolution and is now [explicit in the spec](https://drafts.csswg.org/css-color-4/#serializing-color-function-values):

> <!--StartFragment--><p>For the predefined color spaces,
> the <em>minimum</em> precision for round-tripping is as follows:</p>
   
color space | Minimum bits
-- | --
srgb | 10

<!--EndFragment-->



> Either way, I think this should be clarified in the spec.

Yes, Color 5 needs a serialization section.

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


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

Received on Saturday, 19 June 2021 14:33:54 UTC