Re: Opacity and nth-child

> I've tweaked the test of Opacity and added a span to see if the span
> inherited opacity

It better not... Opacity is not inherited, but is applied to the entire element
and all its children as a single atomic operation.  In fact, as I understand
it, the following testcase:

<div style="opacity: 0.5"><span>0.5</span></div>
<div style="opacity: 0.5"><span style="opacity: inherit">0.25</span></div>
<div style="opacity: 0.25"><span>0.25</span></div>

Should show the two "0.25" texts as being equally opaque and both less opaque
than the "0.5" text.

Boris
-- 
"This isn't right.  This isn't even wrong."

                -- Wolfgang Pauli on a paper submitted 
                   by a physicist colleague

Received on Sunday, 28 March 2004 21:29:00 UTC