Re: Additional value for the visibility property

fantasai wrote:
>
> David Perrell wrote:
>> Why not alpha as an option here?
>>
>> Value:      visible | hidden | collapse | inherit | <alpha>
>>
>> where alpha = 0.00 to 1.00
>
> http://www.w3.org/TR/css3-color/#transparency
>
> ~fantasai
>
While we are on this page (http://www.w3.org/TR/css3-color/#transparency 
) ...

Can we change:

"Conceptually, after the element (including its children) is rendered 
into an RGBA offscreen image, the opacity setting specifies how to blend 
the offscreen rendering into the current composite rendering."

to

"Conceptually, after the element (including its *in-flow* children) is 
rendered into an RGBA offscreen image, the opacity setting specifies how 
to blend the offscreen rendering into the current composite rendering."

note *in-flow* there.

Test case:

<html>
<head>
  <style>
    html { background-color:red; }
    div.container { position:relative; background-color:white; 
width:100px; height:100px; opacity:0.75; }
    div.kid { position:absolute; background-color:orange; width:100px; 
height:100px; left:50px; top:50px; }
  </style> 
<head>
<body>
  <div class="container">
    <div class="kid"></div>
  </div>
</body>
</html>

Renders in:
  FF3 and Safari - div.kid as not transparent.
  Opera - div.kid as transparent.

-- 
Andrew Fedoniouk.
http://terrainformatica.com

Received on Tuesday, 8 July 2008 23:18:09 UTC