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

(I think adding "srgb" would be good. In general, now that we srgb is not clamped to [0,1], it's a pretty good default interchange value).

Would be good to clarify what behavior is desired for some edge case input values:

Should `none` be serialized if it is explicitly stated?
```
<input type="color" colorspace="display-p3" value="color(srgb none 0 1)">
```

Should NaN / infinity be serialized.
```
<input type="color" colorspace="display-p3" value="color(srgb calc(NaN) 0 1)">
<input type="color" colorspace="display-p3" value="color(srgb calc(infinity) 0 1)">
```

Should currentColor be supported? And if so, what value should it serialize as?
```
<input type="color" colorspace="display-p3" value="color(from currentColor srgb r g b / 2)">
```

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


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

Received on Friday, 11 October 2024 17:45:57 UTC