Re: [css-houdini-drafts] [css-typed-om] define `toRGB()` method (#1028)

In several spots in this section, I'm assuming that the CSS Color spec is in mind for these things. I'm happy to provide more explicit references, tho. I presume I'd have to add these for all the color space refs.

Your link with the text "convert this into an sRGB color" is just for the "lab to sRGB" conversion - do you consider that a reasonable ref for this, since it can come from any space? I'm inclined to just drop a ref to CSS Color in general here and assume it's obvious which algorithms are invoked in each particular case.

> It is probably assumed that if this has no alpha, the alpha slot is set to 1.0 but this should be explicitly stated.

Colors always have an alpha in our data model, right? The Color spec is pretty clear about defaulting the alpha (to 1) when it's omitted.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1028#issuecomment-839937463 using your GitHub account


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

Received on Wednesday, 12 May 2021 16:52:48 UTC