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

Re: CSS Opacity

From: Zoffix Znet <zoffix@zoffix.com>
Date: Mon, 30 Apr 2007 21:09:49 -0400
To: Pascal Germroth <pascal@germroth.name>
Cc: www-style@w3.org
Message-Id: <1177981790.6323.40.camel@zoffix>

On Sun, 2007-04-29 at 12:17 +0200, Pascal Germroth wrote:

> Maybe values > 1 should be allowed for opacity? For example:
> #photo { opacity : 2; }
> Would mean that the element, whose pixels have an "effective" opacity of
> 0.5 would have the "effective" opacity of its pixels doubled, to 1.0,
> meaning they are rendered with double opacity, which is then halved by
> the body element and appears thus just plain opaque to the viewer.
> I don't know if this could be implemented as graphics libraries often
> "clamp" the colour values to [0;1]...

Hm, I was more thinking of the opacity being like this:

<div id="parent">
	<div id="child">

#parent { opacity: .5; }

#child { opacity: 1;}

Now, everything is rendered according to the way `opacity` works right
now. The exception will be that since #child has `opacity` set too, it
would be, umm, I guess I can say "re-rendered" with the opacity value
that is set on it. Thus the #parent will be half-transparent, but the
child will be rendered without any transparency.

What I mean, is that if an element has `opacity` property set it should
be re-rendered with the set opacity which would not relate to the one of

	Thank you for your time.

               Regards, Zoffix Znet     

        ( http://zoffix.com ,   http://haslayout.net )
Received on Tuesday, 1 May 2007 01:09:59 UTC

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