Re: [css-houdini-drafts] [css-typed-om] Inputs for the CSSColorValue constructors (#1014)

FWIW, I think that CSS types should not be about input syntax. Some input syntax aspects might have to be preserved in certain cases because of legacy roundtripping behavior, but ideally that is minimized as it there is not a lot of benefit to it. I would actually have expected `color(srgb 0 1 0)`, `#0f0`, and `rgb(0% 100% 0%)` to all end up as the same type with a bit indicating how it would need to be serialized back (if any API has to preserve that today, not sure).

I also agree that we should not have separate (non-CSS) color and CSS color types. We don't have that today with string-based colors either and thus far that has been great and allowed for reuse of a great deal of logic between canvas, CSS, and SVG.

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


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

Received on Friday, 14 May 2021 06:05:18 UTC