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

RE: CSS3 opacity

From: <Matthew.van.Eerde@hbinc.com>
Date: Fri, 9 Apr 2004 14:24:54 -0700
Message-ID: <B8B9965E9A4B1948839F37ADCB58E9D581311A@exchange.hbinc.com>
To: www-style@w3.org

> From: Alan Plum [mailto:ashmodai@mushroom-cloud.com]
> > /Anne van Kesteren (fora)/:
> > 
> > What about if one want to change only the "alpha" component of an 
> > unknown color?
> > 
> What about if one wants to change only the red component of 
> an unknown 
> color?
> Right now relative colors aren't possible. So that also goes for 
> relative opacity of colors.
> -ap

This begs the question - is opacity a property of color?  Probably not in
the same sense that red is a property of color.

I believe Anne's point is that it would be nice to control the opacity of an
element's background independently from the opacity of the content or the
color of the background.  Consider something like

<p id="matt">
blah blah <img>

Then it would be nice to say something like

{	position: fixed; top: 20px; right: 20px; height: 50px; width: 50px;
	background: url(linoleum.gif);
	background-opacity: 20%;

	opacity: 80%;

p#matt img
{	opacity: 100%;

This would allow strong visibility through the background, light visibility
through the text, and an opaque image (which might otherwise look very
strange, depending on what was beneath it.)

Matthew.van.Eerde@hbinc.com                805.964.4554 x902
Hispanic Business Inc./HireDiversity.com   Software Engineer
perl -e"print join er,reverse',','l hack',' P','Just anoth'"
Received on Friday, 9 April 2004 17:24:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:12 UTC