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 09:25:20 -0700
Cc: Eli Morris-Heft <dai@doublefishstudios.com>
Message-Id: <0889B74D-4912-4174-A457-A233450FFE79@comcast.net>
To: "www-style@w3.org list" <www-style@w3.org>

On May 7, 2008, at 8:59 AM, Brad Kemper wrote:

> 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.

I will retract the part about it saying nothing about negative values.  
Actually it does:

> The third length is a blur radius. Negative values are not allowed.

But I would like to see that changed.
Received on Wednesday, 7 May 2008 16:26:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:36 UTC