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: François REMY <francois.remy.dev@outlook.com>
Date: Thu, 9 May 2013 22:18:20 +0200
Message-ID: <DUB404-EAS354E8CDFA8DB79EEBE6FB97A5A40@phx.gbl>
To: "'Tab Atkins Jr.'" <jackalmage@gmail.com>, "'Lea Verou'" <lea@w3.org>
CC: "'Sebastian Zartner'" <sebastianzartner@gmail.com>, "'Jake Archibald'" <jaffathecake@gmail.com>, 'Šime Vidas' <sime.vidas@gmail.com>, "'www-style list'" <www-style@w3.org>
± On the other hand, we could go the calc route and require a space, so that
± "adjust-alpha(red, 50%)" would set the alpha to 50%, but "adjust-alpha(red,
± + 50%)" would make the alpha 50% larger.  Seems kinda clumsy, though.

Argh, sent that mail too fast. Another option is to use multiplications. 

color(red, alpha * 75%) vs color(red, alpha 50%)
Received on Thursday, 9 May 2013 20:18:57 UTC

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