W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-color-4] Serialization/normalization of color() (and other advanced color functions) (#4826)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Mar 2020 15:06:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-595809159-1583507174-sysbot+gh@w3.org>
Do they, though? 
I tried to find examples on Github of scripts that assume a particular notation for a serialized `<color>` (apart from assertions in Blink / Webkit / Chromium conformance test files). Maybe Iʼm searching the wrong way, but I have not found any yet, certainly not using `getPropertyValue()`. 

By the way, while reading the [respective part of the CSSOM draft](https://drafts.csswg.org/cssom/#serializing-css-values), I noticed that

> shortest base-ten integer serialization of the color’s [red/green/blue] component

seems underspecified, because it does not say whether the RGB components are `[0…255]` (apparently intended), `[0…100]%` or `[0.0…1.0]`. 

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4826#issuecomment-595809159 using your GitHub account
Received on Friday, 6 March 2020 15:06:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC