W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

[csswg-drafts] [css-color-4] Computed/used value of color doesn't specify which rgb() syntax to use.

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 18 Oct 2017 21:10:10 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-266643018-1508361009-sysbot+gh@w3.org>
AmeliaBR has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-4] Computed/used value of color doesn't specify which rgb() syntax to use. ==
The section ["Resolving Color values"](https://drafts.csswg.org/css-color-4/#resolving-color-values) in CSS Colors 4 makes it explicit that computed & used values for color should use `rgb` or `rgba` notation.

But it doesn't say whether to use the (0-255) format or percentages.  Quick test suggest that integer format is preferred by browsers. 

On high-color-depth monitors, converting all colors to integers could mean a loss of data, if the numbers were always rounded off to a nearest integer.  But since the latest specs allow decimals in the 0-255 syntax, maybe the rounding could be left as implementation-dependent?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1891 using your GitHub account
Received on Wednesday, 18 October 2017 21:10:12 UTC

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