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

Re: [css3-color] #rrggbbaa annotation

From: Eli Morris-Heft <eli.morris.heft@gmail.com>
Date: Tue, 18 May 2010 18:53:33 -0500
Message-ID: <AANLkTild9IW_wBSLaMhclfVJc0Lkls4YKej1kN2Rgi7e@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Alex Meiburg <timeroot.alex@gmail.com>, www-style@w3.org
Would it be unacceptable to just say that, when using #rrggbbaa notation,
the aa part maps 0x00-0xFF directly onto 0.0 - 1.0 (that is, take the aa
value, convert it to decimal, and divide by 255), and if an author needs to
specify a color with /exactly/ 0.5 opacity (or another float that is not
represented exactly by one of the 256 values 0x00-0xFF) for some reason, he
or she just has to use rgba() (or hsla()) notation? I think that most
authors using (or rather, who would use) #rrggbbaa notation, and I am among
this company, would be just fine with 0x80 representing 0.50196...

Eli Morris-Heft
Received on Tuesday, 18 May 2010 23:54:28 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:46 UTC