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

Re: [css3-background] box-shadow syntax

From: Brad Kemper <brkemper@comcast.net>
Date: Wed, 7 May 2008 08:59:30 -0700
Cc: www-style@w3.org
Message-Id: <3E1875DD-2763-4741-948F-0E30097CF8AF@comcast.net>
To: Eli Morris-Heft <dai@doublefishstudios.com>

On May 6, 2008, at 3:55 PM, Eli Morris-Heft wrote:

> The current syntax (as seen at http://www.w3.org/TR/css3-background/#the-box-shadow)

Another thing about this syntax is that negative numbers are allowed  
for the first two lengths (horizontal and vertical offsets), but no  
mention is made about negative values for the third (blur radius).  
Perhaps it is assumed that a negative length would make no sense  
there, and so is not worth mentioning, but I would propose that it  
should allow a negative number. Then a negative blur radius could mean  
that is is an inner shadow instead of an outer shadow.

Inner shadows are useful for creating the effect of a hole cut in the  
background, instead of something floating above the background. Apple  
uses this effect a lot in Mac OS X in their system preferences panels,  
and other places where there are tab panels. The shadow is on the  
inside of the box instead of the outside.

I would like to be able to create that effect with box box-shadow and  
text-shadow.
Received on Wednesday, 7 May 2008 16:00:17 GMT

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