W3C home > Mailing lists > Public > www-style@w3.org > September 2004

Re: ideas for future css versions ...

From: Mikko Rantalainen <mira@st.jyu.fi>
Date: Thu, 09 Sep 2004 16:56:20 +0300
Message-ID: <41406104.4040200@st.jyu.fi>
CC: www-style@w3.org

Ian Hickson wrote:
> On Thu, 2 Sep 2004, Brian Hunger wrote:
>>alpha!
> 
> http://www.w3.org/TR/css3-color/#rgba-color
> Already supported by Safari.

Why not support #1234 and #12345678 formats too? The RGB color 
syntax already supports #123 and #123456 
<URL:http://www.w3.org/TR/css3-color/#rgb-color>. A new syntax with 
4 or 8 digits wouldn't collide with the old mechanism, instead it 
would be a logical extension.

For example, #7777 would be 50% transparent 50% grey, #f004 would be 
~25% opaque red etc. The short forms would be expanded just like RGB 
values: double the digits. The above examples would be equal to 
#77777777 and #ff000044 or rgba(127,127,127,127) and rgba(255,0,0,68)

-- 
Mikko
Received on Thursday, 9 September 2004 15:24:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:32 GMT