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

Re: [css3-background] box-shadow syntax

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 14 May 2008 18:27:30 -0700
Message-ID: <482B9182.3040605@inkedblade.net>
To: David Hyatt <hyatt@apple.com>, www-style@w3.org

David Hyatt wrote:
> On May 12, 2008, at 9:55 AM, Brad Kemper wrote:
>> Here is my mockup:
>>
>> http://bradclicks.com/cssplay/Shadows.html
> 
> One thing that bugs me about this rendering of spread is the implicit 
> use of round joins on the stroke instead of miter joins when cast is set 
> to outside.
> 
> My understanding of spread is that basically you take a shape (e.g., a 
> glyph for text-shadow, a box for box-shadow) and you combine the filled 
> glyph shape with a stroke of the shape that extends outside the fill by 
> an amount equal to the spread.  The composed shape (fill+stroke) can 
> then have its shadow rendered offset by the spread to achieve the 
> renderings you are showing.
> 
> However when cast is outside you seem to be making assumptions about the 
> line joins used by the stroke.

The same assumption applies both when the cast is inside and outside. If
you pay attention to the A when spread is 5px and blur is zero you can see
this. The spread extends to every point that is within 5px of a point on
the original shadow.

~fantasai
Received on Thursday, 15 May 2008 01:28:15 GMT

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