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

Re: +AFs-CSS3-Color+AF0-: RGBA as hexadecimal notation

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 20 Mar 2014 11:15:14 -0700
Message-ID: <CAAWBYDBE4WDZmnj_86hp+SNafzq3pkAFi9q_sTeU1-pEn9OpTg@mail.gmail.com>
To: Axel Dahmen <brille1@hotmail.com>
Cc: www-style list <www-style@w3.org>
[What's going on with your title? Is that some weird encoding for brackets?]

On Thu, Mar 20, 2014 at 7:20 AM, Axel Dahmen <brille1@hotmail.com> wrote:
> like many others, I prefer to write color codes in hexadecimal notation,
> because the rgb() notation requires much more typing.
>
> For the CSS Color Module Level 3, wouldn't it be feasible, thus, to allow
> for giving an approximation to all possible RGBA values by means of
> hexadecimal notation, with "#***0" (or #******00) being equal to
> "rgba(*,*,*,0)" and "#***f" (or "#******ff") being equal to "rgba(*,*,*,1)"?
>
> So ...
>
> "#***0"  ===  rgba(*, *, *, 0)
> "#******80"  ===  rgba(*, *, *, .5)
> "#***f"  ===  rgba(*, *, *, 1)

Already specified: http://dev.w3.org/csswg/css-color/#hex-notation

~TJ
Received on Thursday, 20 March 2014 18:16:01 UTC

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