W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-color-4] What serialization should be used when using color(lab ...) syntax to specify a lab color? (#5825)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Jan 2021 15:45:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-763722847-1611157510-sysbot+gh@w3.org>
So concretely, for Lab and LCH: if we go with 

**Option A: serializing `lab()` and `lch()` with the shortest serializable form**

 then

> The serialized form of `lch()` and `lab()` values is derived from the computed value and uses the `lab()` form, with lowercase letters for the function name.

would become

> The serialized form of `lch()`, `lab()`, and `color(lab )` values is derived from the computed value and uses the `lab()` form, with lowercase letters for the function name.

while if we go for 

**Option B: serializing `lab()` and `lch()` as `color(lab ...)`** 

then the entire section [Serializing Lab and LCH values](https://drafts.csswg.org/css-color-4/#serializing-lab-lch) would be shortened, simply stating to serialize as `color(lab)`. Edited versions of the examples would move to [Serializing values of the color() function](https://drafts.csswg.org/css-color-4/#serializing-color-function-values) and the introduction to that section would change from

> The serialized form of `color()` values is derived from the computed value and uses the `color()` form, with lowercase letters for the function name and the colorspace name.

to

>  The serialized form of `color()`, `lab()` and `lch()` values is derived from the computed value and uses the `color()` form, with lowercase letters for the function name and the colorspace name.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 January 2021 15:45:13 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC