W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [css3-background]Positioning of box-shadow blurs?

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 30 Apr 2010 16:52:49 -0700
Message-Id: <69281C43-0C55-499C-A3EC-46ECE755C514@gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Sylvain Galineau <sylvaing@microsoft.com>, Brian Manthos <brianman@microsoft.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Alex Meiburg <timeroot.alex@gmail.com>, "www-style@w3.org" <www-style@w3.org>
By the way, I guess we will have a similar description for describing  
rounded corners on 'outline' that follow the curve of a rounded border  
box (so that there is an even amount of space between the border and  
the outline.

On Apr 30, 2010, at 4:47 PM, Brad Kemper <brad.kemper@gmail.com> wrote:

>
>
> On Apr 30, 2010, at 3:54 PM, Sylvain Galineau  
> <sylvaing@microsoft.com> wrote:
>
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
>>> Behalf Of Brad Kemper
>>
>>
>>> #The fourth length is a spread radius. Positive values cause the  
>>> shadow
>>> to grow in all directions by the specified radius. Negative values
>>> cause
>>> the shadow to shrink. The shadow should not change shape when a
>>> spread radius is applied: sharp corners should remain sharp  
>>> ***prior to
>>> the application of blur radius***.
>>
>> It must specify that the spread radius is added to each corner  
>> radius as
>> well. I shouldn't have to know what a spread radius is in order to  
>> know
>> what happens for those.
>
> Boy, it's getting a bit long for what I thought was a prety simple  
> concept how about this:
>
>
> # The third length is a blur radius. Negative values are not  
> allowed. The
> blurring region should be an area the width of this value, running  
> along and
> centered on the edge of the shadow shape (a shape that otherwise  
> mimics
> the shape of the border box, including any border-radius, absent the
> application of spread radius).  The shadow should transition from
> the shadow color on the inner edge of this region, to transparent at  
> the
> outer edge of this region. If the blur radius is 0, the shadow has a  
> sharp
> edge, otherwise the larger the value, the more the edge of the  
> shadow is
> blurred.  The exact algorithm is not specified.
>
> #The fourth length is a spread radius. Positive values cause the  
> shadow
> to expand in all directions by the specified radius. Negative values  
> cause
> the shadow to contract. If 'border-radius' is zero, then corners  
> should remain sharp (not rounded) after spread radius is applied and  
> prior to the application of blur radius. Otherwise, the corners of  
> the new shape will have radii equal to the corresponding 'border- 
> radius' value plus the spread-radius value (or minus the spread- 
> radius value if it is an inset shadow, but no less than zero for the  
> final spread shadow corner radius).
Received on Friday, 30 April 2010 23:53:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT