Re: [csswg-drafts] [css-color-5] relative color syntax: numbers vs. percentages in `calc()` (#9759)

Just so we are on the same page, the serialized specified value of `HSL(from RebeccaPurple   h      s l / 50%)` is `hsl(from rebeccapurple h s l / 0.5)` and the computed value is `color(srgb 0.4 0.2 0.6 / 0.5)`, right?

And the specified value of `hsl(from color(prophoto-rgb 0 0.5 0.2) h s l)` is `hsl(from color(prophoto-rgb 0 0.5 0.2) h s l)` which resolves to `hsl(154.94 980.05% 5.8247%)` and the serialized computed value is `color(srgb -0.5126027234999999 0.6290967235 0.15224692113633262)` (rounded to whatever precision that is at least 10 bits)..

Which modulo rounding error and slop for passing through HSL is the same as  `color(srgb -0.5125980452010113, 0.6290915645143078, 0.15215907295798237)' if the prophoto is converted directly.

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


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

Received on Friday, 12 January 2024 17:14:58 UTC