W3C home > Mailing lists > Public > www-style@w3.org > August 2014

Re: [css-color] Remove gray() Notation

From: Patrick Dark <www-style.at.w3.org@patrick.dark.name>
Date: Wed, 20 Aug 2014 00:56:29 -0500
Message-ID: <53F4388D.70404@patrick.dark.name>
To: Christoph Päper <christoph.paeper@crissov.de>
CC: www-style@w3.org
On 8/19/2014 3:43 AM, Christoph Päper wrote:
> ‘rgb(50%)’ follows this nicely, because all three values are the same, but ‘hsl(50%)’ would be less intuitive indeed. The percentage cannot denote the hue, because that’s conventionally treated as an angle, but without deeper knowledge it’s unclear whether the percentage specifies saturation or lightness or both.

hsl(50%) is not less intuitive. If hue is omitted, then saturation is irrelevant. Therefore, 50% must refer to lightness.

> It‘s, of course, just specifying lightness for HSL, but if I remember correctly it would be both, saturation and brightness/value, for HSB/HSV (which are not supported in CSS, yet).

If grayscale value shortcuts don't make sense for new color formats, then those formats need not have such shortcuts. I don't see that as a significant issue.
Received on Wednesday, 20 August 2014 05:56:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC