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

Re: [csswg-drafts] [css-color] Serializing color() values

From: csnardi via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Jan 2018 21:27:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-359936408-1516742865-sysbot+gh@w3.org>
The issue of serializing colors specified through `rgb()` with decimal channels still hasn't been resolved; the discussion above seemed to imply that `rgb(0.1, 0.1, 0.1)` should be serialized to `rgb(0, 0, 0)` even if the UA does not round the channel when painting.

[The CSSOM spec](https://drafts.csswg.org/cssom/#serializing-css-values) is no clearer; first it is said the "shortest base-ten *integer* serialization" should be used, but the following 7 lines use the "shortest base-ten serialization".

GitHub Notification of comment by csnardi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/480#issuecomment-359936408 using your GitHub account
Received on Tuesday, 23 January 2018 21:27:50 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC