Re: [csswg-drafts] CSS color serialization and <input type=color> with alpha/colorspace (#11008)

I think I will address this problem in the HTML PR for now by adding language to the effect of

> Set _color_ to _color_ converted to use the 'color()' function.

which will at least make it unambiguous what we need. I believe the questions Sam raised are already addressed by the combination of https://github.com/whatwg/html/pull/10456 and CSS Color, albeit not always in a straightforward manner:

- I believe https://drafts.csswg.org/css-color/#missing states that missing becomes 0 due to color conversion (which we do).
- That includes NaN.
- Since we don't pass context `currentcolor` will use the initial value of the `color` property which is `CanvasText` which becomes opaque black.

I will leave this issue open to potentially allow for that (and other) wording to be improved if the CSS WG decides to add more primitives here.

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


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

Received on Wednesday, 16 October 2024 13:57:18 UTC