Closed
Description
CSS Color 4 indicates 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:
rgb(255 0 none)
should currently serialize as:
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.