W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [css4-color] Re: CIE color definitions in CSS3 color module

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Fri, 17 Sep 2010 10:44:42 +0200
Message-Id: <EDEACA79-9BB6-4278-ABA3-995EF901A0B2@crissov.de>
To: "www-style@w3.org list" <www-style@w3.org>
Alexis Shaw:
> On 17 September 2010 18:10, Alexis Shaw <alexis.shaw@gmail.com> wrote:
>> I mean that the definition needs to be able to have more than 256 possible
>> values, more like 10000 possible values
> 256 values is not enough, as the color space would be compressed.

Percentages are not <integer> ‘%’, but <number> ‘%’. So, by design, they do support to write much more than 101 distinct values, even more than 10000. How many distinction a user agent or some graphics framework can handle is out of scope for CSS. There is no 1-byte-per-component limit in CSS except for some of the RGB color notation and that is historic baggage. 

For example, “rgb(80%, 48.5%, 12.5787587%)” works just fine today, even if it results in exactly the same color value as “rgb(204, 124, 32)”.
Received on Friday, 17 September 2010 08:45:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC