W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] Adding alpha channel to <input type=color>

From: Victor Vasiliev <vasilvv@gmail.com>
Date: Wed, 26 Aug 2009 03:44:13 +0400
Message-ID: <4A94774D.4010805@gmail.com>
Section 4.10.4.1.15 says that color must be in sRGB. However, it may be
handful for some applications to have alpha channel specified, since
many GUI libraries (GTK has it; I'm also told Mac OS supports it as
well) support color picker with opacity control.

I suggest to add a boolean attribute "alpha" to <input type=color>
(disabled by default). If this attribute is present, the color well
allows to set opacity value, and instead of sRGB, sends RGBA.

Another question is which format should be used to submit RGBA color. We
have rgba(number, number, number, float) used in canvas, but I feel like
it's not the best format to be used in submited data. Maybe #rrggbbaa or
#aarrggbb?

--vvv
Received on Tuesday, 25 August 2009 16:44:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:51 UTC