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

CSS Opacity

From: Zoffix Znet <zoffix@zoffix.com>
Date: Sat, 28 Apr 2007 15:25:43 -0400
To: www-style@w3.org
Message-Id: <1177788343.6323.0.camel@zoffix>

I think it is very inconvenient that when you set opacity on an element
you cannot make descendants opaque.

Consider this example (perhaps with some scripting involved):

You want to show a photo in the middle of the page and make the rest of
the page semi-transparent.

body { opacity: .5; }

Will make the photo semi-transparent as well.

#photo { opacity: 1; }

Will not fix this.

People are forced to use workarounds like this:

Which requires extra elements and not always possible.

Forgive me if I am failing to see the implementation limitations, but in
my personal opinion opacity override is something that would be quite
Received on Sunday, 29 April 2007 02:08:55 UTC

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