W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Additional value for the visibility property

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 08 Jul 2008 16:17:20 -0700
Message-ID: <4873F580.9060705@terrainformatica.com>
To: fantasai <fantasai.lists@inkedblade.net>
CC: David Perrell <davidp@hpaa.com>, W3C Style List <www-style@w3.org>

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:29 UTC