W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: [css-color] Have you considered standardizing a rgba(#RRGGBB, <alpha-value>) notation?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 9 May 2013 20:20:46 -0700
Message-ID: <CAAWBYDD1GW0E3=ZzvTP6Yg+=V6V+K1k_WJb=-+8i8WXYR-P1ag@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: Alan Gresley <alan@css-class.com>, Sebastian Zartner <sebastianzartner@gmail.com>, "Sam L'ecuyer" <sam@cateches.is>, Brad Kemper <brad.kemper@gmail.com>, François REMY <francois.remy.dev@outlook.com>, Lea Verou <lea@w3.org>, Jake Archibald <jaffathecake@gmail.com>, Šime Vidas <sime.vidas@gmail.com>, www-style list <www-style@w3.org>
On Thu, May 9, 2013 at 8:00 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> On Thu, May 9, 2013 at 7:44 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> On Thu, May 9, 2013 at 7:41 PM, Rik Cabanier <cabanier@gmail.com> wrote:
>> > HSL is an alternate representation of RGB. There's no magic mapping
>> > between
>> > color gamuts like you would need for Lab.
>> > How useful would this be though. Does anyone think in these terms?
>>
>> The color-altering functions in SASS are *very* popular and
>> widely-used.  They're often used in combination with SASS variables,
>> in ways that translate over directly to CSS variables.
>
> Interesting!
> Why would you want this supported natively (instead of having the author
> calculate it in advance). Is it so you can transition between luminance
> value?

Ignore "luminance" for now - Lea meant "lightness", as in the L from HSL.  ^_^

Again, the SASS functions show how popular it is to have it calculated
automatically, even though it *could* of course all be done manually.
Authors seem to like just being able to lighten a chosen color, etc.

Manually adjusting colors isn't trivial, and is error-prone.  If you
change the "base" color that the rest are based on, you have to redo
all of your calculations.  By using variables and color functions, you
can change the whole suite of colors automatically.

~TJ
Received on Friday, 10 May 2013 03:21:33 UTC

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