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

Re: CSS Opacity

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 30 Apr 2007 13:38:08 +0200
To: Raul Dias <raul@dias.com.br>
Cc: www-style@w3.org
Message-ID: <hdkb331ja7ajprtrklccbja9s2gqgm98eg@hive.bjoern.hoehrmann.de>

* Raul Dias wrote:
>Just to confirm:
>body { opacity: .5; }
>and
>#photo { opacity: .5; }
>
>will result in a opacity of 0.5 and not 0.25, right? 
>Meaning the values are absolute not relative.

No, and that would be rather surprising. Under this model, if you want
to modify the opacity of a whole sub-tree uniformly, you would have to
modify the opacity property of each and every element in it, and you'd
expect that you can decrease the opacity of a child element relative
to its parent, whereas this thread is about not being able to do that.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 30 April 2007 11:38:12 GMT

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