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: Wed, 8 May 2013 08:17:07 -0700
Message-ID: <CAAWBYDBqRF_2=Qw+G6CNzgptUUq5u4fm+G2WOv2msU2N5f-uhg@mail.gmail.com>
To: Sebastian Zartner <sebastianzartner@gmail.com>
Cc: Jake Archibald <jaffathecake@gmail.com>, Lea Verou <lea@w3.org>, Šime Vidas <sime.vidas@gmail.com>, www-style list <www-style@w3.org>
On Wed, May 8, 2013 at 3:52 AM, Sebastian Zartner
<sebastianzartner@gmail.com> wrote:
> Since different kinds of color values are involved in these examples, using
> rgba() doesn't make sense here. alpha() seems more logical to me.

Agreed.  I'm thinking maybe a pair of functions for each component,
set-*() and adjust-*(), for either overriding the given channel or
adjusting it up or down.  Hmm, though, there's argument for both
adjusting by a set amount, and by a percentage amount, at least for
some channels.  I'll look into what the preprocessors do, precisely.

Received on Wednesday, 8 May 2013 15:17:56 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:27 UTC