[csswg-drafts] [css-color-4] Clarify serialization of rgb()/rgba() functions that have `none` components (#6959)

weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-4] Clarify serialization of rgb()/rgba() functions that have `none` components ==
CSS Color 4 [indicates](https://drafts.csswg.org/css-color/#rgb-functions) that `none` components are only allowed in the space separated syntax for `rgb()` / `rgba()` functions, but since `rgb()` / `rgba()` functions are serialized in the comma separated style, this leads to a weird case where the serialized form is not reparseable if any of the components are `none`. For example:

```css
rgb(255 0 none)
```

should currently serialize as:

```css
rgb(255, 0, none)
```

which is an invalid value.

Seems like either `none` should be allowed in the comma separated legacy form or serialization should be updated to specify a different serialization if `none` is used.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6959 using your GitHub account


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

Received on Monday, 17 January 2022 17:39:13 UTC