Re: transparancy and RGB()

On Aug 14, 10:34pm, Chris Josephes wrote:

> Has any thought been given to the idea of specifying varying levels of
> transparancy?  What about the idea of specifying the transparancy level
> directly in an RGB value, such as....
>
> p { background: rgb(20%,0%,0%,50%)} /* final value = transparancy level */

That would be an interesting addition, and would fit well with image formats
that support true variable transparency such as PNG and JPiG. Once could do
interesting things with this and negative margins. Transparency would be more
useful on foreground properties, but certainly it would be nice to set a tint
of a particular color by having the background of an element in the
full-strength color with say 90% transparency.

One would probably need a default value of 0% transparency for backwards
compatibility.

> Also, in the latest version of the CSS spec, it dosn't show the
> possibility of specifying RBG values in hexadecimal anymore?  Was this an
> accidental ommision,

Yep ;-) the quickness of the hand deceives the text editor. Several people
spotted this, and it has now been fixed. Thanks - the more folk that read and
comment on the spec, the better it gets.

-- 
Chris Lilley, W3C                          [ http://www.w3.org/ ]
Graphics and Fonts Guy            The World Wide Web Consortium
http://www.w3.org/people/chris/              INRIA,  Projet W3C
chris@w3.org                       2004 Rt des Lucioles / BP 93
+33 93 65 79 87            06902 Sophia Antipolis Cedex, France

Received on Tuesday, 20 August 1996 05:59:18 UTC