W3C home > Mailing lists > Public > www-style@w3.org > May 2005

[css3-background] suggestion of alternate method for drawing shadows

From: ben <arcticmac@comcast.net>
Date: Mon, 16 May 2005 04:44:51 +0000
Message-Id: <a06200710bead30efb121@[192.168.11.4]>
To: www-style@w3.org




I would suggest that shadows in CSS3 be drawn as follows:
1. Color should be specified according to the CSS3 color properties 
(i.e. with an alpha value)
2. This means that things below the shadow would still show through, 
so I'd recommend that the shadow be drawn immediately behind the box. 
It would then act like a real shadow, and shadow everything beneath 
it.
3. The shadow's opacity in various places should be affected by the 
opacity of the current box.  For example, if the background of the 
current box is transparent, but there is a border on the box, you 
would see a shadow of the border, but it would not be filled in. 
(you would also see it inside the box, since the box is transparent 
and would therefore see through it).  If the background of the box is 
semi-transparent (via a color with an alpha, an opacity value, OR 
MAYBE a transparent PNG?) then that opacity value would be applied to 
the shadow as well.
Received on Monday, 16 May 2005 09:51:13 GMT

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